upon stream migration fails, move intermediate file instead of copy

This commit is contained in:
k4yt3x 2020-05-12 19:27:37 -04:00
parent 0c3c136458
commit 786ccaa610

View File

@ -608,9 +608,9 @@ class Upscaler:
output_video_path = temporary_directory / output_file_name
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()))
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
self.cleanup_temp_directories()