mirror of
				https://github.com/karl0ss/bazarr-ai-sub-generator.git
				synced 2025-10-31 14:44:13 +00:00 
			
		
		
		
	remove temp file after completion
This commit is contained in:
		
							parent
							
								
									ffc01d1b50
								
							
						
					
					
						commit
						2b41a5fad6
					
				| @ -51,5 +51,6 @@ def add_subs_new(subtitles: dict): | ||||
|     output = ffmpeg.output(input_stream, subtitle_stream, output_file.replace('.mkv','.mp4'), c='copy', **{'c:s': 'mov_text'}, **{'metadata:s:s:0': 'language=eng'}) | ||||
|     ffmpeg.run(output, quiet=True, overwrite_output=True) | ||||
|     os.remove(input_file+'_edit') | ||||
|     if '.mkv' in output_file: | ||||
|         os.remove(output_file) | ||||
|     # remove tempfiles | ||||
|     os.remove(subtitle_file) | ||||
|     os.remove(subtitle_file.replace(".srt",".wav")) | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user