mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-03 18:50:53 +01:00 
			
		
		
		
	fix #333
This commit is contained in:
		@@ -209,9 +209,10 @@ def generate_pdf(output_dir='.', doujinshi_obj=None, rm_origin_dir=False, move_t
 | 
			
		||||
        """Write images to a PDF file using img2pdf."""
 | 
			
		||||
        if doujinshi_obj is not None:
 | 
			
		||||
            doujinshi_dir = os.path.join(output_dir, doujinshi_obj.filename)
 | 
			
		||||
            filename = doujinshi_obj.filename.replace('/', '-')
 | 
			
		||||
            pdf_filename = os.path.join(
 | 
			
		||||
                os.path.join(doujinshi_dir, '..'),
 | 
			
		||||
                f'{doujinshi_obj.filename}.pdf'
 | 
			
		||||
                f'{filename}.pdf'
 | 
			
		||||
            )
 | 
			
		||||
        else:
 | 
			
		||||
            pdf_filename = './doujinshi.pdf'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user