4
0
mirror of https://github.com/RicterZ/nhentai.git synced 2025-04-30 00:00:48 +02:00

fix 0.2.16

This commit is contained in:
Ricter Z 2018-10-01 15:02:04 +08:00
parent 86c31f9b5e
commit 489e8bf0f4
2 changed files with 6 additions and 1 deletions

@ -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_)