From 2d327359aaa5d26101c74ce17ba461a21eb6e9c7 Mon Sep 17 00:00:00 2001 From: symant233 Date: Tue, 21 May 2019 16:16:58 +0800 Subject: [PATCH] small fix --- nhentai/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhentai/utils.py b/nhentai/utils.py index 98a239a..434cf80 100644 --- a/nhentai/utils.py +++ b/nhentai/utils.py @@ -119,7 +119,7 @@ def generate_main_html(output_dir='.'): image = files[0] # 001.jpg or 001.png if folder is not None: title = folder.replace('_', ' ') - if sys.version_info < (3, 0): + if sys.version_info > (3, 0): title = title.encode('utf-8') else: title = 'nHentai HTML Viewer'