From afbf7ea6faf177e919392c68048d0616a76157d3 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 13 Dec 2025 15:39:32 +0700 Subject: [PATCH] add emtadata embed for filesystem rescan and manual import --- backend/appsettings/src/filesystem.py | 1 + backend/appsettings/src/manual.py | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/appsettings/src/filesystem.py b/backend/appsettings/src/filesystem.py index 1cf02cb0..0a90532f 100644 --- a/backend/appsettings/src/filesystem.py +++ b/backend/appsettings/src/filesystem.py @@ -87,6 +87,7 @@ class Scanner: progress=(idx + 1) / total, ) index_new_video(youtube_id) + YoutubeVideo(youtube_id).embed_metadata() comment_list = CommentList(task=self.task) comment_list.add(video_ids=list(self.to_index)) diff --git a/backend/appsettings/src/manual.py b/backend/appsettings/src/manual.py index 08e5b8e3..6b67a010 100644 --- a/backend/appsettings/src/manual.py +++ b/backend/appsettings/src/manual.py @@ -145,6 +145,7 @@ class ImportFolderScanner: print(f"manual import: {current_video}") ManualImport(current_video, config).run() + YoutubeVideo(current_video["video_id"]).embed_metadata() video_ids = [i["video_id"] for i in self.to_import] comment_list = CommentList(task=self.task)