From 0bff817ec9bce8e48fbebe17303ea9839804b4a0 Mon Sep 17 00:00:00 2001 From: Samuel ORTION Date: Fri, 2 Jul 2021 17:42:10 +0200 Subject: [PATCH] Updated already uploaeded check --- src/mirror.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mirror.py b/src/mirror.py index 5b55b82..6da7896 100755 --- a/src/mirror.py +++ b/src/mirror.py @@ -33,8 +33,9 @@ def update_mirror(channel): if not entry['id'] in added_previous: url = base_yt_url + entry['url'] urls.append(url) + os.rename(f"data/{name}.playlist.last.json", f"data/{name}.playlist.previous.json") - print(urls) + # print(urls) TOKEN = config['peertube']['access_token'] hed = {'Authorization': 'Bearer ' + TOKEN}