mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 09:44:32 +01:00
allow encoding for small videos
This commit is contained in:
parent
087206346a
commit
fec21c2f40
@ -287,10 +287,10 @@ def encode_media(
|
|||||||
else:
|
else:
|
||||||
original_media_path = media.media_file.path
|
original_media_path = media.media_file.path
|
||||||
|
|
||||||
if not media.duration:
|
#if not media.duration:
|
||||||
encoding.status = "fail"
|
# encoding.status = "fail"
|
||||||
encoding.save(update_fields=["status"])
|
# encoding.save(update_fields=["status"])
|
||||||
return False
|
# return False
|
||||||
|
|
||||||
with tempfile.TemporaryDirectory(dir=settings.TEMP_DIRECTORY) as temp_dir:
|
with tempfile.TemporaryDirectory(dir=settings.TEMP_DIRECTORY) as temp_dir:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user