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