diff --git a/nhentai/utils.py b/nhentai/utils.py index 4af629d..ce7033c 100644 --- a/nhentai/utils.py +++ b/nhentai/utils.py @@ -94,7 +94,7 @@ def generate_html(output_dir='.', doujinshi_obj=None): with open(os.path.join(doujinshi_dir, 'metadata.json'), 'w') as f: json.dump(metadata, f, separators=','':') else: - metadata= {'Title': 'nHentai HTML Viewer'} + metadata = {'Title': 'nHentai HTML Viewer'} data = html.format(TITLE=metadata['Title'], IMAGES=image_html, SCRIPTS=js, STYLES=css) try: @@ -117,10 +117,11 @@ def generate_main_html(output_dir='./'): Default output folder will be the CLI path. """ - count = 0 image_html = '' main = readfile('viewer/main.html') css = readfile('viewer/main.css') + js = readfile('viewer/main.js') + element = '\n\