mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	fix #370
This commit is contained in:
		@@ -101,8 +101,8 @@ def parse_doujinshi_obj(
 | 
				
			|||||||
) -> Tuple[str, str]:
 | 
					) -> Tuple[str, str]:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    filename = f'./doujinshi.{file_type}'
 | 
					    filename = f'./doujinshi.{file_type}'
 | 
				
			||||||
    doujinshi_dir = os.path.join(output_dir, doujinshi_obj.filename)
 | 
					 | 
				
			||||||
    if doujinshi_obj is not None:
 | 
					    if doujinshi_obj is not None:
 | 
				
			||||||
 | 
					        doujinshi_dir = os.path.join(output_dir, doujinshi_obj.filename)
 | 
				
			||||||
        _filename = f'{doujinshi_obj.filename}.{file_type}'
 | 
					        _filename = f'{doujinshi_obj.filename}.{file_type}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if file_type == 'cbz':
 | 
					        if file_type == 'cbz':
 | 
				
			||||||
@@ -112,6 +112,8 @@ def parse_doujinshi_obj(
 | 
				
			|||||||
            _filename = _filename.replace('/', '-')
 | 
					            _filename = _filename.replace('/', '-')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        filename = os.path.join(output_dir, _filename)
 | 
					        filename = os.path.join(output_dir, _filename)
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        doujinshi_dir = './'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return doujinshi_dir, filename
 | 
					    return doujinshi_dir, filename
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user