mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 18:31:24 +02:00
fix output_dir make gen-main error
This commit is contained in:
parent
c32b516575
commit
6053e302ee
@ -100,7 +100,11 @@ def generate_main_html(output_dir='.'):
|
||||
</div>\n\
|
||||
</div>\n'
|
||||
|
||||
os.chdir(output_dir) # switch to given dir
|
||||
if output_dir == '':
|
||||
os.chdir('.')
|
||||
else:
|
||||
os.chdir(output_dir)
|
||||
# switch to given dir
|
||||
doujinshi_dirs = next(os.walk('.'))[1]
|
||||
# https://stackoverflow.com/questions/141291/how-to-list-only-top-level-directories-in-python
|
||||
|
||||
|
@ -50,6 +50,7 @@ document.onkeypress = event => {
|
||||
case 'a':
|
||||
changePage(currentPage - 1);
|
||||
break;
|
||||
// Return to previous page
|
||||
case 'q':
|
||||
window.history.go(-1);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user