From 8d89ec96f5577a0ba0e52a5c11c0aecc26fe0cd8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 3 May 2024 07:44:32 +0300 Subject: [PATCH] attempt video sync fix --- files/helpers/media.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index ad37578ee..48b0263ca 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -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)