From 9b6554494265cb1daff75bc4a6fbde8bd6a0bccf Mon Sep 17 00:00:00 2001 From: symant233 Date: Thu, 30 May 2019 20:05:46 +0800 Subject: [PATCH] add travis-ci test --- .travis.yml | 1 + nhentai/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b0b5eef..1e49f11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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/ diff --git a/nhentai/utils.py b/nhentai/utils.py index 61c535e..9cafe37 100644 --- a/nhentai/utils.py +++ b/nhentai/utils.py @@ -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)))