From 56e7b010bfb01db3e2e8c37411938ce9119f26ef Mon Sep 17 00:00:00 2001 From: j Date: Sat, 18 Nov 2023 11:50:33 +0100 Subject: [PATCH] reuse upload if possible --- config.jsonc | 3 ++- utils.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.jsonc b/config.jsonc index 21382dd..c5d1f88 100644 --- a/config.jsonc +++ b/config.jsonc @@ -1394,6 +1394,7 @@ "video": { "formats": ["mp4"], "previewRatio": 1.3333333333, - "resolutions": [360, 720] + "resolutions": [720], + "reuseUpload": true } } diff --git a/utils.py b/utils.py index b168e6a..4066ac9 100644 --- a/utils.py +++ b/utils.py @@ -80,7 +80,7 @@ def load_vimeo(item): stream.make_timeline() if resolution == 720 and len(parts) == 1: add_subtitles(item, media, tmp) - item.update_timeline() - item.save() os.chdir(cdir) shutil.rmtree(tmp) + item.update_timeline() + item.save()