attempt video sync fix

master
Aevann 2024-05-03 07:44:32 +03:00
parent ffd31773e3
commit 8d89ec96f5
1 changed files with 3 additions and 2 deletions

View File

@ -309,11 +309,12 @@ def process_badge_entry(oldname, v, comment_body):
if SITE == 'watchpeopledie.tv':
from rclone_python import rclone
def rclone_copy(filename):
print(f'attempting to sync {filename}', flush=True)
x = rclone.copy(filename, 'no:/videos', ignore_existing=True, show_progress=False)
params = ["rclone", "copy", filename, "no:/videos"]
subprocess.run(params, check=True, timeout=30)
print(f'finished syncing {filename}', flush=True)
def rclone_delete(path):
params = ("rclone", "deletefile", path)
subprocess.run(params, check=True, timeout=30)