From 786ccaa6100c07790dfbe49d6383041e5beac906 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Tue, 12 May 2020 19:27:37 -0400 Subject: [PATCH] upon stream migration fails, move intermediate file instead of copy --- src/upscaler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upscaler.py b/src/upscaler.py index 88d60d7..e11f68b 100755 --- a/src/upscaler.py +++ b/src/upscaler.py @@ -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()