]> git.lizzy.rs Git - nhentai.git/commitdiff
small fix
authorsymant233 <symant233@gmail.com>
Tue, 21 May 2019 08:16:58 +0000 (16:16 +0800)
committersymant233 <symant233@gmail.com>
Tue, 21 May 2019 08:16:58 +0000 (16:16 +0800)
nhentai/utils.py

index 98a239a9f97ecdb265da9dd907a436f9dfc5f412..434cf8053d85ee828476c0f891590d3f18889cc7 100644 (file)
@@ -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'