allow encoding for small videos

This commit is contained in:
Markos Gogoulos 2021-01-26 22:03:06 +02:00
parent 087206346a
commit fec21c2f40

View File

@ -287,10 +287,10 @@ def encode_media(
else:
original_media_path = media.media_file.path
if not media.duration:
encoding.status = "fail"
encoding.save(update_fields=["status"])
return False
#if not media.duration:
# encoding.status = "fail"
# encoding.save(update_fields=["status"])
# return False
with tempfile.TemporaryDirectory(dir=settings.TEMP_DIRECTORY) as temp_dir: