small fix

This commit is contained in:
symant233 2019-05-21 16:16:58 +08:00
parent f78b8bc2cd
commit 2d327359aa

View File

@ -119,7 +119,7 @@ def generate_main_html(output_dir='.'):
image = files[0] # 001.jpg or 001.png image = files[0] # 001.jpg or 001.png
if folder is not None: if folder is not None:
title = folder.replace('_', ' ') title = folder.replace('_', ' ')
if sys.version_info < (3, 0): if sys.version_info > (3, 0):
title = title.encode('utf-8') title = title.encode('utf-8')
else: else:
title = 'nHentai HTML Viewer' title = 'nHentai HTML Viewer'