This commit is contained in:
Markos Gogoulos
2025-05-15 19:16:22 +03:00
parent 22db570836
commit 5666c8fc27
3 changed files with 18 additions and 1 deletions
+2
View File
@@ -423,6 +423,7 @@ def produce_sprite_from_video(friendly_token):
def create_hls(friendly_token):
"""Creates HLS file for media, uses Bento4 mp4hls command"""
logger.info(f"Entering for {friendly_token}")
if not hasattr(settings, "MP4HLS_COMMAND"):
logger.info("Bento4 mp4hls command is missing from configuration")
return False
@@ -467,6 +468,7 @@ def create_hls(friendly_token):
if media.hls_file != pp:
media.hls_file = pp
media.save(update_fields=["hls_file"])
logger.info(f"All good / exiting for {friendly_token}")
return True