From 0cd2576dab2232a0c2af12e942086b182c95ae83 Mon Sep 17 00:00:00 2001 From: Ricter Z Date: Wed, 2 Dec 2020 07:45:31 +0800 Subject: [PATCH] 0.4.9 --- nhentai/__init__.py | 2 +- nhentai/command.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nhentai/__init__.py b/nhentai/__init__.py index 30a41f5..a05cc6d 100644 --- a/nhentai/__init__.py +++ b/nhentai/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.4.8' +__version__ = '0.4.9' __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' diff --git a/nhentai/command.py b/nhentai/command.py index b44f9d2..7341677 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -27,8 +27,10 @@ def main(): if constant.CONFIG['proxy']['http']: logger.info('Using proxy: {0}'.format(constant.CONFIG['proxy']['http'])) - if constant.CONFIG['template']: - logger.info('Using viewer template "{}"'.format(constant.CONFIG['template'])) + if not constant.CONFIG['template']: + constant.CONFIG['template'] = 'default' + + logger.info('Using viewer template "{}"'.format(constant.CONFIG['template'])) # check your cookie check_cookie() -- 2.44.0