chore: add base64 image info to video API

This commit is contained in:
Sean Norwood 2022-04-14 20:48:32 +00:00
parent fd00369859
commit 599b85bf24

View File

@ -69,6 +69,7 @@ class SearchProcess:
vid_last_refresh = date_praser(video_dict["vid_last_refresh"]) vid_last_refresh = date_praser(video_dict["vid_last_refresh"])
published = date_praser(video_dict["published"]) published = date_praser(video_dict["published"])
vid_thumb_url = ThumbManager().vid_thumb_path(video_id) vid_thumb_url = ThumbManager().vid_thumb_path(video_id)
base64_blur = ThumbManager().get_base64_blur(video_id)
channel = self._process_channel(video_dict["channel"]) channel = self._process_channel(video_dict["channel"])
video_dict.update( video_dict.update(
@ -78,6 +79,7 @@ class SearchProcess:
"vid_last_refresh": vid_last_refresh, "vid_last_refresh": vid_last_refresh,
"published": published, "published": published,
"vid_thumb_url": vid_thumb_url, "vid_thumb_url": vid_thumb_url,
"vid_thumb_base64": base64_blur
} }
) )