fanza.py:fix [-]Movie number has changed! [RED-164]->[red00164]

This commit is contained in:
lededev
2022-04-11 13:37:50 +08:00
parent dfcc012201
commit a813bf462f

View File

@@ -251,7 +251,8 @@ def main(number):
# so get the hinban first, and then pass it to following functions # so get the hinban first, and then pass it to following functions
fanza_hinban = getNum(htmlcode) fanza_hinban = getNum(htmlcode)
out_num = fanza_hinban out_num = fanza_hinban
if re.sub('-|_', '', number.lower()) == fanza_hinban: number_lo = number.lower()
if re.sub('-|_', '', number_lo) == fanza_hinban or number_lo.replace('-', '00') == fanza_hinban:
out_num = number out_num = number
data = { data = {
"title": getTitle(htmlcode).strip(), "title": getTitle(htmlcode).strip(),