fix 'series' error

This commit is contained in:
Marcus Hsu
2020-06-22 15:48:17 +08:00
committed by GitHub
parent 83476c7bc0
commit a782074f98

View File

@@ -128,6 +128,7 @@ def main(number):
'actor_photo':'', 'actor_photo':'',
'website': 'https://fc2club.com//html/FC2-' + number + '.html', 'website': 'https://fc2club.com//html/FC2-' + number + '.html',
'source':'https://fc2club.com//html/FC2-' + number + '.html', 'source':'https://fc2club.com//html/FC2-' + number + '.html',
'series': '',
} }
if dic['title'] == '': if dic['title'] == '':
htmlcode2 = ADC_function.get_html('https://adult.contents.fc2.com/article/' + number + '/',cookies={'wei6H':'1'}) htmlcode2 = ADC_function.get_html('https://adult.contents.fc2.com/article/' + number + '/',cookies={'wei6H':'1'})
@@ -151,6 +152,7 @@ def main(number):
'actor_photo': '', 'actor_photo': '',
'website': 'http://adult.contents.fc2.com/article/' + number + '/', 'website': 'http://adult.contents.fc2.com/article/' + number + '/',
'source': 'http://adult.contents.fc2.com/article/' + number + '/', 'source': 'http://adult.contents.fc2.com/article/' + number + '/',
'series': '',
} }
except Exception as e: except Exception as e:
# (TODO) better handle this # (TODO) better handle this