]> git.lizzy.rs Git - nhentai.git/commitdiff
add travis-ci test
authorsymant233 <symant233@gmail.com>
Thu, 30 May 2019 12:05:46 +0000 (20:05 +0800)
committersymant233 <symant233@gmail.com>
Thu, 30 May 2019 12:05:46 +0000 (20:05 +0800)
.travis.yml
nhentai/utils.py

index b0b5eefeb67758eba1768d559009b046bdbc480a..1e49f115d81341c674bd89cc68506251ab1530e1 100644 (file)
@@ -19,3 +19,4 @@ script:
     - NHENTAI=https://nhentai.net nhentai --tag lolicon
     - NHENTAI=https://nhentai.net nhentai -F
     - NHENTAI=https://nhentai.net nhentai --file /tmp/test.txt
+    - nhentai --id=152503,146134 --gen-main --output=/tmp/
index 61c535e56902c9040ec3bc9d00fa4208c7ebd158..9cafe376e073cd62e1e517691039642655d07277 100644 (file)
@@ -138,7 +138,7 @@ def generate_main_html(output_dir='.'):
             with open('./main.html', 'wb') as f:
                 f.write(data.encode('utf-8'))
         logger.log(
-            15, 'Main Viewer has been write to \'{0}/main.html\''.format(output_dir))
+            15, 'Main Viewer has been write to \'{0}main.html\''.format(output_dir))
     except Exception as e:
         logger.warning('Writen Main Viewer failed ({})'.format(str(e)))