mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-30 08:10:46 +02:00
fixed language tag
This commit is contained in:
parent
6156cf5914
commit
fe4fb46e30
@ -90,13 +90,13 @@ Download by character name:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
nhentai --character kuro von einsbern --download
|
nhentai --character "kuro von einsbern" --download
|
||||||
|
|
||||||
Download by parody name:
|
Download by parody name:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
nhentai --parody the idolmaster --download
|
nhentai --parody "the idolmaster" --download
|
||||||
|
|
||||||
Download by group name:
|
Download by group name:
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ Download using multiple tags (--tag, --character, --paordy and --group supported
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
nhentai --tag lolicon, teasing --artist tamano kedama, atte nanakusa
|
nhentai --tag "lolicon, teasing" --artist "tamano kedama, atte nanakusa"
|
||||||
|
|
||||||
Download your favorites with delay:
|
Download your favorites with delay:
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ def main():
|
|||||||
doujinshi_ids = [i['id'] for i in doujinshis]
|
doujinshi_ids = [i['id'] for i in doujinshis]
|
||||||
|
|
||||||
elif options.language:
|
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)
|
print_doujinshi(doujinshis)
|
||||||
if options.is_download and doujinshis:
|
if options.is_download and doujinshis:
|
||||||
doujinshi_ids = [i['id'] for i in doujinshis]
|
doujinshi_ids = [i['id'] for i in doujinshis]
|
||||||
|
@ -21,7 +21,8 @@ TAG_URL = ['%s/tag' % BASE_URL,
|
|||||||
'%s/artist' % BASE_URL,
|
'%s/artist' % BASE_URL,
|
||||||
'%s/character' % BASE_URL,
|
'%s/character' % BASE_URL,
|
||||||
'%s/parody' % 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
|
TAG_API_URL = '%s/api/galleries/tagged' % BASE_URL
|
||||||
LOGIN_URL = '%s/login/' % 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:
|
if ',' in tag_name:
|
||||||
tag_name = [i.strip().replace(' ', '-') for i in tag_name.split(',')]
|
tag_name = [i.strip().replace(' ', '-') for i in tag_name.split(',')]
|
||||||
else:
|
else:
|
||||||
tag_name = tag_name.replace(' ', '-')
|
tag_name = tag_name.strip().replace(' ', '-')
|
||||||
if sorting == 'date':
|
if sorting == 'date':
|
||||||
sorting = ''
|
sorting = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user