]> git.lizzy.rs Git - nhentai.git/commitdiff
0.4.9
authorRicter Z <ricterzheng@gmail.com>
Tue, 1 Dec 2020 23:45:31 +0000 (07:45 +0800)
committerRicter Z <ricterzheng@gmail.com>
Tue, 1 Dec 2020 23:45:31 +0000 (07:45 +0800)
nhentai/__init__.py
nhentai/command.py

index 30a41f5364af40573944b5f907ea330839d6ac4f..a05cc6dd7f200de0a55150b64ec500af44f3c78b 100644 (file)
@@ -1,3 +1,3 @@
-__version__ = '0.4.8'
+__version__ = '0.4.9'
 __author__ = 'RicterZ'
 __email__ = 'ricterzheng@gmail.com'
index b44f9d20c64da13c5aa0ed7131a30500ada4c2a6..7341677289e833305f75db8a76c33ebbafb671a2 100644 (file)
@@ -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()