Merge pull request #52 from biaji/patch-1

修正某些情况下网站数据导致的错误
This commit is contained in:
Yoshiko 2019-10-26 17:39:58 +08:00 committed by GitHub
commit e7090682c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,6 +172,9 @@ def getDataFromJSON(file_number): #从JSON返回元数据
title = title.replace('<', '')
title = title.replace('>', '')
title = title.replace('|', '')
tmpArr = cover_small.split(',')
if len(tmpArr) > 0:
cover_small = tmpArr[0].strip('\"').strip('\'')
# ====================处理异常字符 END================== #\/:*?"<>|
naming_rule = eval(config['Name_Rule']['naming_rule'])