mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-07-02 08:29:27 +02:00
fixed language tag
This commit is contained in:
@ -71,7 +71,7 @@ def main():
|
||||
doujinshi_ids = [i['id'] for i in doujinshis]
|
||||
|
||||
elif options.language:
|
||||
doujinshis = tag_parser(options.group, max_page=options.max_page, index=5)
|
||||
doujinshis = tag_parser(options.language, max_page=options.max_page, index=5)
|
||||
print_doujinshi(doujinshis)
|
||||
if options.is_download and doujinshis:
|
||||
doujinshi_ids = [i['id'] for i in doujinshis]
|
||||
|
@ -21,7 +21,8 @@ TAG_URL = ['%s/tag' % BASE_URL,
|
||||
'%s/artist' % BASE_URL,
|
||||
'%s/character' % BASE_URL,
|
||||
'%s/parody' % BASE_URL,
|
||||
'%s/group' % BASE_URL]
|
||||
'%s/group' % BASE_URL,
|
||||
'%s/language' % BASE_URL]
|
||||
|
||||
TAG_API_URL = '%s/api/galleries/tagged' % BASE_URL
|
||||
LOGIN_URL = '%s/login/' % BASE_URL
|
||||
|
@ -198,7 +198,7 @@ def tag_parser(tag_name, sorting='date', max_page=1, index=0):
|
||||
if ',' in tag_name:
|
||||
tag_name = [i.strip().replace(' ', '-') for i in tag_name.split(',')]
|
||||
else:
|
||||
tag_name = tag_name.replace(' ', '-')
|
||||
tag_name = tag_name.strip().replace(' ', '-')
|
||||
if sorting == 'date':
|
||||
sorting = ''
|
||||
|
||||
|
Reference in New Issue
Block a user