mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-30 00:00:48 +02:00
fix #29 0.2.16
This commit is contained in:
parent
86c31f9b5e
commit
489e8bf0f4
nhentai
@ -1,3 +1,3 @@
|
||||
__version__ = '0.2.15'
|
||||
__version__ = '0.2.16'
|
||||
__author__ = 'RicterZ'
|
||||
__email__ = 'ricterzheng@gmail.com'
|
||||
|
@ -21,6 +21,8 @@ def main():
|
||||
doujinshi_ids = []
|
||||
doujinshi_list = []
|
||||
|
||||
import pdb; pdb.set_trace()
|
||||
|
||||
if options.login:
|
||||
username, password = options.login.split(':', 1)
|
||||
logger.info('Logging in to nhentai using credential pair \'%s:%s\'' % (username, '*' * len(password)))
|
||||
@ -41,6 +43,9 @@ def main():
|
||||
if options.is_download:
|
||||
doujinshi_ids = map(lambda d: d['id'], doujinshis)
|
||||
|
||||
if not doujinshi_ids:
|
||||
doujinshi_ids = options.id
|
||||
|
||||
if doujinshi_ids:
|
||||
for id_ in doujinshi_ids:
|
||||
doujinshi_info = doujinshi_parser(id_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user