Fixing small caching problem

This commit is contained in:
2023-03-07 12:26:45 +00:00
parent a3f930235d
commit 642efe934a

View File

@@ -102,6 +102,10 @@ async def sign_video_thumbnail(
if not sign_video:
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
bytes = extract_thumbnail(f"{settings.DATA_PATH}/{sign_video.path}")