fix fanza hinban issue

This commit is contained in:
jnozsc 2020-02-16 14:45:40 -08:00 committed by GitHub
parent e0d2058fa0
commit 8dda8da2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,11 @@ def main(number):
htmlcode=get_html('https://www.dmm.co.jp/mono/dvd/-/detail/=/cid='+number)
url = 'https://www.dmm.co.jp/mono/dvd/-/detail/=/cid='+number
try:
# for some old page, the input number does not match the page
# for example, the url will be cid=test012
# but the hinban on the page is test00012
# so get the hinban first, and then pass it to following functions
number = getNum(htmlcode)
dic = {
'title': getTitle(htmlcode).strip(getActor(htmlcode)),
'studio': getStudio(htmlcode),
@ -91,15 +96,15 @@ def main(number):
'director': getDirector(htmlcode),
'actor': getActor(htmlcode),
'release': getRelease(htmlcode),
'number': getNum(htmlcode),
'cover': getCover(htmlcode,number),
'number': number,
'cover': getCover(htmlcode, number),
'imagecut': 1,
'tag': getTag(htmlcode),
'label':getLabel(htmlcode),
'year': getYear(getRelease(htmlcode)), # str(re.search('\d{4}',getRelease(a)).group()),
'actor_photo': '',
'website': url,
'source': 'siro.py',
'source': 'fanza.py',
}
except :
dic = {