reuse upload if possible

This commit is contained in:
j 2023-11-18 11:50:33 +01:00
parent 0c098e768c
commit 56e7b010bf
2 changed files with 4 additions and 3 deletions

View file

@ -1394,6 +1394,7 @@
"video": { "video": {
"formats": ["mp4"], "formats": ["mp4"],
"previewRatio": 1.3333333333, "previewRatio": 1.3333333333,
"resolutions": [360, 720] "resolutions": [720],
"reuseUpload": true
} }
} }

View file

@ -80,7 +80,7 @@ def load_vimeo(item):
stream.make_timeline() stream.make_timeline()
if resolution == 720 and len(parts) == 1: if resolution == 720 and len(parts) == 1:
add_subtitles(item, media, tmp) add_subtitles(item, media, tmp)
item.update_timeline()
item.save()
os.chdir(cdir) os.chdir(cdir)
shutil.rmtree(tmp) shutil.rmtree(tmp)
item.update_timeline()
item.save()