the old file should always be deleted

master
Aevann 2024-04-07 03:46:42 +02:00
parent 0805ea288c
commit 7d8a0d3dfe
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ def reencode_video(old, new, check_sizes=False):
old_size = os.stat(old).st_size
new_size = os.stat(tmp).st_size
if new_size > old_size:
os.remove(old)
os.remove(tmp)
if SITE == 'watchpeopledie.tv':
rclone_copy(new)