diff --git a/nhentai/__init__.py b/nhentai/__init__.py index 6b82594..3b21881 100644 --- a/nhentai/__init__.py +++ b/nhentai/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.2.15' +__version__ = '0.2.16' __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' diff --git a/nhentai/command.py b/nhentai/command.py index ce1dd0f..3445fac 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -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_)