mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
fix show info
This commit is contained in:
parent
9b65544942
commit
f5b7d89fb0
@ -103,7 +103,8 @@ def cmd_parser():
|
||||
generate_html()
|
||||
exit(0)
|
||||
|
||||
if args.main_viewer and not args.favorites and args.id is None and not args.is_download:
|
||||
if args.main_viewer and not args.id and not args.keyword and \
|
||||
not args.tag and not args.favorites:
|
||||
generate_main_html()
|
||||
exit(0)
|
||||
|
||||
|
@ -50,9 +50,9 @@ class Doujinshi(object):
|
||||
table = [
|
||||
["Doujinshi", self.name],
|
||||
["Subtitle", self.info.subtitle],
|
||||
["Characters", self.info.character],
|
||||
["Characters", self.info.characters],
|
||||
["Authors", self.info.artists],
|
||||
["Language", self.info.language],
|
||||
["Languages", self.info.languages],
|
||||
["Tags", self.info.tags],
|
||||
["URL", self.url],
|
||||
["Pages", self.pages],
|
||||
|
@ -162,7 +162,7 @@ def doujinshi_parser(id_):
|
||||
|
||||
# gain information of the doujinshi
|
||||
information_fields = doujinshi_info.find_all('div', attrs={'class': 'field-name'})
|
||||
needed_fields = ['Characters', 'Artists', 'Language', 'Tags']
|
||||
needed_fields = ['Characters', 'Artists', 'Languages', 'Tags']
|
||||
for field in information_fields:
|
||||
field_name = field.contents[0].strip().strip(':')
|
||||
if field_name in needed_fields:
|
||||
|
Loading…
x
Reference in New Issue
Block a user