kopia lustrzana https://github.com/mediacms-io/mediacms
Merge pull request #43 from mediacms-io/fix-less-than-1-sec-video
allow encoding for small videospull/52/head
commit
58d703c3eb
|
@ -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:
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue