mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
fix
This commit is contained in:
parent
42d65ed4e4
commit
e0f8e839cf
@ -528,6 +528,17 @@ def whisper_transcribe(friendly_token, translate_to_english=False):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
@task(name="update_search_vector", queue="short_tasks")
|
||||||
|
def update_search_vector(friendly_token):
|
||||||
|
try:
|
||||||
|
media = Media.objects.get(friendly_token=friendly_token)
|
||||||
|
media.update_search_vector()
|
||||||
|
except: # noqa
|
||||||
|
return False
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
@task(name="produce_sprite_from_video", queue="long_tasks")
|
@task(name="produce_sprite_from_video", queue="long_tasks")
|
||||||
def produce_sprite_from_video(friendly_token):
|
def produce_sprite_from_video(friendly_token):
|
||||||
"""Produces a sprites file for a video, uses ffmpeg"""
|
"""Produces a sprites file for a video, uses ffmpeg"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user