forked from MarseyWorld/MarseyWorld
fix video sync
parent
0db90f1eab
commit
d54aa06e39
|
@ -132,6 +132,7 @@ def reencode_video(old, new, check_sizes=False):
|
||||||
os.remove(old)
|
os.remove(old)
|
||||||
if os.path.isfile(tmp):
|
if os.path.isfile(tmp):
|
||||||
os.remove(tmp)
|
os.remove(tmp)
|
||||||
|
rclone_copy(new)
|
||||||
return
|
return
|
||||||
|
|
||||||
if check_sizes:
|
if check_sizes:
|
||||||
|
@ -140,6 +141,7 @@ def reencode_video(old, new, check_sizes=False):
|
||||||
if new_size > old_size:
|
if new_size > old_size:
|
||||||
os.remove(old)
|
os.remove(old)
|
||||||
os.remove(tmp)
|
os.remove(tmp)
|
||||||
|
rclone_copy(new)
|
||||||
return
|
return
|
||||||
|
|
||||||
os.replace(tmp, new)
|
os.replace(tmp, new)
|
||||||
|
|
Loading…
Reference in New Issue