mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-30 23:58:11 +00:00
upon stream migration fails, move intermediate file instead of copy
This commit is contained in:
parent
0c3c136458
commit
786ccaa610
@ -608,9 +608,9 @@ class Upscaler:
|
|||||||
output_video_path = temporary_directory / output_file_name
|
output_video_path = temporary_directory / output_file_name
|
||||||
Avalon.info(_('Created temporary directory to contain file'))
|
Avalon.info(_('Created temporary directory to contain file'))
|
||||||
|
|
||||||
# copy file to new destination
|
# move file to new destination
|
||||||
Avalon.info(_('Writing intermediate file to: {}').format(output_video_path.absolute()))
|
Avalon.info(_('Writing intermediate file to: {}').format(output_video_path.absolute()))
|
||||||
shutil.copy(self.upscaled_frames / self.ffmpeg_object.intermediate_file_name, output_video_path)
|
shutil.move(self.upscaled_frames / self.ffmpeg_object.intermediate_file_name, output_video_path)
|
||||||
|
|
||||||
# increment total number of files processed
|
# increment total number of files processed
|
||||||
self.cleanup_temp_directories()
|
self.cleanup_temp_directories()
|
||||||
|
Loading…
Reference in New Issue
Block a user