mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	fix show info
This commit is contained in:
		@@ -103,7 +103,8 @@ def cmd_parser():
 | 
				
			|||||||
        generate_html()
 | 
					        generate_html()
 | 
				
			||||||
        exit(0)
 | 
					        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()
 | 
					        generate_main_html()
 | 
				
			||||||
        exit(0)
 | 
					        exit(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,9 +50,9 @@ class Doujinshi(object):
 | 
				
			|||||||
        table = [
 | 
					        table = [
 | 
				
			||||||
            ["Doujinshi", self.name],
 | 
					            ["Doujinshi", self.name],
 | 
				
			||||||
            ["Subtitle", self.info.subtitle],
 | 
					            ["Subtitle", self.info.subtitle],
 | 
				
			||||||
            ["Characters", self.info.character],
 | 
					            ["Characters", self.info.characters],
 | 
				
			||||||
            ["Authors", self.info.artists],
 | 
					            ["Authors", self.info.artists],
 | 
				
			||||||
            ["Language", self.info.language],
 | 
					            ["Languages", self.info.languages],
 | 
				
			||||||
            ["Tags", self.info.tags],
 | 
					            ["Tags", self.info.tags],
 | 
				
			||||||
            ["URL", self.url],
 | 
					            ["URL", self.url],
 | 
				
			||||||
            ["Pages", self.pages],
 | 
					            ["Pages", self.pages],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -162,7 +162,7 @@ def doujinshi_parser(id_):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # gain information of the doujinshi
 | 
					    # gain information of the doujinshi
 | 
				
			||||||
    information_fields = doujinshi_info.find_all('div', attrs={'class': 'field-name'})
 | 
					    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:
 | 
					    for field in information_fields:
 | 
				
			||||||
        field_name = field.contents[0].strip().strip(':')
 | 
					        field_name = field.contents[0].strip().strip(':')
 | 
				
			||||||
        if field_name in needed_fields:
 | 
					        if field_name in needed_fields:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user