add emtadata embed for filesystem rescan and manual import

This commit is contained in:
Simon 2025-12-13 15:39:32 +07:00
parent c02ec7e82e
commit afbf7ea6fa
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 0 deletions

View File

@ -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))

View File

@ -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)