skip embed_metadata on failed import
This commit is contained in:
parent
afbf7ea6fa
commit
8d3b7dc341
|
|
@ -86,8 +86,9 @@ class Scanner:
|
|||
],
|
||||
progress=(idx + 1) / total,
|
||||
)
|
||||
index_new_video(youtube_id)
|
||||
YoutubeVideo(youtube_id).embed_metadata()
|
||||
json_data = index_new_video(youtube_id)
|
||||
if json_data:
|
||||
YoutubeVideo(youtube_id).embed_metadata()
|
||||
|
||||
comment_list = CommentList(task=self.task)
|
||||
comment_list.add(video_ids=list(self.to_index))
|
||||
|
|
|
|||
Loading…
Reference in New Issue