fix fanza hinban issue
This commit is contained in:
parent
e0d2058fa0
commit
8dda8da2b3
11
fanza.py
11
fanza.py
@ -83,6 +83,11 @@ def main(number):
|
|||||||
htmlcode=get_html('https://www.dmm.co.jp/mono/dvd/-/detail/=/cid='+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
|
url = 'https://www.dmm.co.jp/mono/dvd/-/detail/=/cid='+number
|
||||||
try:
|
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 = {
|
dic = {
|
||||||
'title': getTitle(htmlcode).strip(getActor(htmlcode)),
|
'title': getTitle(htmlcode).strip(getActor(htmlcode)),
|
||||||
'studio': getStudio(htmlcode),
|
'studio': getStudio(htmlcode),
|
||||||
@ -91,15 +96,15 @@ def main(number):
|
|||||||
'director': getDirector(htmlcode),
|
'director': getDirector(htmlcode),
|
||||||
'actor': getActor(htmlcode),
|
'actor': getActor(htmlcode),
|
||||||
'release': getRelease(htmlcode),
|
'release': getRelease(htmlcode),
|
||||||
'number': getNum(htmlcode),
|
'number': number,
|
||||||
'cover': getCover(htmlcode,number),
|
'cover': getCover(htmlcode, number),
|
||||||
'imagecut': 1,
|
'imagecut': 1,
|
||||||
'tag': getTag(htmlcode),
|
'tag': getTag(htmlcode),
|
||||||
'label':getLabel(htmlcode),
|
'label':getLabel(htmlcode),
|
||||||
'year': getYear(getRelease(htmlcode)), # str(re.search('\d{4}',getRelease(a)).group()),
|
'year': getYear(getRelease(htmlcode)), # str(re.search('\d{4}',getRelease(a)).group()),
|
||||||
'actor_photo': '',
|
'actor_photo': '',
|
||||||
'website': url,
|
'website': url,
|
||||||
'source': 'siro.py',
|
'source': 'fanza.py',
|
||||||
}
|
}
|
||||||
except :
|
except :
|
||||||
dic = {
|
dic = {
|
||||||
|
Loading…
Reference in New Issue
Block a user