Update core.py

替换release中字符‘/’,修复无法抓取‘LUXU-xxxx’。
This commit is contained in:
mo_yy 2020-01-10 13:29:09 +08:00 committed by GitHub
parent b990c974b6
commit e25da134da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ def getDataFromJSON(file_number): # 从JSON返回元数据
json_data = json.loads(javbus.main(file_number))
if getDataState(json_data) == 0: # 如果元数据获取失败,请求番号至其他网站抓取
json_data = json.loads(avsox.main(file_number))
elif getDataState(json_data) == 0: # 如果元数据获取失败,请求番号至其他网站抓取
if getDataState(json_data) == 0: # 如果元数据获取失败,请求番号至其他网站抓取
json_data = json.loads(javdb.main(file_number))
# ================================================网站规则添加结束================================================
@ -183,6 +183,7 @@ def getDataFromJSON(file_number): # 从JSON返回元数据
title = title.replace('<', '')
title = title.replace('>', '')
title = title.replace('|', '')
release = release.replace('/', '-')
tmpArr = cover_small.split(',')
if len(tmpArr) > 0:
cover_small = tmpArr[0].strip('\"').strip('\'')