Fixing small caching problem
This commit is contained in:
@@ -102,6 +102,10 @@ async def sign_video_thumbnail(
|
|||||||
if not sign_video:
|
if not sign_video:
|
||||||
raise BaseException("Sign video not found")
|
raise BaseException("Sign video not found")
|
||||||
|
|
||||||
|
# check if the video exists
|
||||||
|
if not os.path.exists(f"{settings.DATA_PATH}/{sign_video.path}"):
|
||||||
|
raise BaseException("Video not found")
|
||||||
|
|
||||||
# extract the thumbnail from the video
|
# extract the thumbnail from the video
|
||||||
bytes = extract_thumbnail(f"{settings.DATA_PATH}/{sign_video.path}")
|
bytes = extract_thumbnail(f"{settings.DATA_PATH}/{sign_video.path}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user