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": {
"formats": ["mp4"],
"previewRatio": 1.3333333333,
"resolutions": [360, 720]
"resolutions": [720],
"reuseUpload": true
}
}

View file

@ -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()