Update core.py
替换release中字符‘/’,修复无法抓取‘LUXU-xxxx’。
This commit is contained in:
parent
b990c974b6
commit
e25da134da
3
core.py
3
core.py
@ -140,7 +140,7 @@ def getDataFromJSON(file_number): # 从JSON返回元数据
|
|||||||
json_data = json.loads(javbus.main(file_number))
|
json_data = json.loads(javbus.main(file_number))
|
||||||
if getDataState(json_data) == 0: # 如果元数据获取失败,请求番号至其他网站抓取
|
if getDataState(json_data) == 0: # 如果元数据获取失败,请求番号至其他网站抓取
|
||||||
json_data = json.loads(avsox.main(file_number))
|
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))
|
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('>', '')
|
title = title.replace('>', '')
|
||||||
title = title.replace('|', '')
|
title = title.replace('|', '')
|
||||||
|
release = release.replace('/', '-')
|
||||||
tmpArr = cover_small.split(',')
|
tmpArr = cover_small.split(',')
|
||||||
if len(tmpArr) > 0:
|
if len(tmpArr) > 0:
|
||||||
cover_small = tmpArr[0].strip('\"').strip('\'')
|
cover_small = tmpArr[0].strip('\"').strip('\'')
|
||||||
|
Loading…
Reference in New Issue
Block a user