fix import

pull/226/head
Aevann 2024-04-01 05:17:36 +02:00
parent cd9952ff8a
commit 57b7c1ae8d
2 changed files with 6 additions and 5 deletions

View File

@ -42,3 +42,9 @@ def purge_files_in_cloudflare_cache(files):
except:
return False
return res == "<Response [200]>"
if SITE == 'watchpeopledie.tv':
from rclone_python import rclone
def rclone_delete(filename):
try: rclone.delete(filename)
except Exception as e: print(e, flush=True)

View File

@ -305,10 +305,5 @@ def process_badge_entry(oldname, v, comment_body):
if SITE == 'watchpeopledie.tv':
from rclone_python import rclone
def rclone_copy(filename):
rclone.copy(filename, 'no:/videos', ignore_existing=True, show_progress=False)
def rclone_delete(filename):
try: rclone.delete(filename)
except Exception as e: print(e, flush=True)