From 2b709ce9c152f76f6d3924a6d15c5c23682ba022 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 12 Jul 2025 18:18:22 +0700 Subject: [PATCH] remove unused vid thumb blur --- backend/appsettings/index_mapping.json | 4 ---- backend/video/src/index.py | 3 --- frontend/src/pages/Home.tsx | 1 - 3 files changed, 8 deletions(-) diff --git a/backend/appsettings/index_mapping.json b/backend/appsettings/index_mapping.json index 03d43deb..eaeaf325 100644 --- a/backend/appsettings/index_mapping.json +++ b/backend/appsettings/index_mapping.json @@ -110,10 +110,6 @@ "type": "text", "index": false }, - "vid_thumb_base64": { - "type": "text", - "index": false - }, "date_downloaded": { "type": "date", "format": "epoch_second" diff --git a/backend/video/src/index.py b/backend/video/src/index.py index 34e23a8c..5b1e8c38 100644 --- a/backend/video/src/index.py +++ b/backend/video/src/index.py @@ -174,15 +174,12 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle): # extract self.channel_id = self.youtube_meta["channel_id"] last_refresh = int(datetime.now().timestamp()) - # base64_blur = ThumbManager().get_base64_blur(self.youtube_id) - base64_blur = False # build json_data basics self.json_data = { "title": self.youtube_meta["title"], "description": self.youtube_meta.get("description", ""), "category": self.youtube_meta.get("categories", []), "vid_thumb_url": self.youtube_meta["thumbnail"], - "vid_thumb_base64": base64_blur, "tags": self.youtube_meta.get("tags", []), "published": self._build_published(), "vid_last_refresh": last_refresh, diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 291725a6..be016f6e 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -74,7 +74,6 @@ export type VideoType = { tags: string[]; title: string; vid_last_refresh: string; - vid_thumb_base64: boolean; vid_thumb_url: string; vid_type: string; youtube_id: string;