attempt video sync fix
parent
ffd31773e3
commit
8d89ec96f5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue