fail open for in continue watching videos building

This commit is contained in:
simon 2022-03-22 13:07:22 +07:00
parent 75cd9d382d
commit fa25a56126
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -201,6 +201,9 @@ class ArchivistResultsView(ArchivistViewConfig):
"ta_video/_search", self.default_conf, data=data "ta_video/_search", self.default_conf, data=data
) )
videos = search.get_data() videos = search.get_data()
if not videos:
return False
for video in videos: for video in videos:
youtube_id = video["source"]["youtube_id"] youtube_id = video["source"]["youtube_id"]
matched = [i for i in results if i["youtube_id"] == youtube_id] matched = [i for i in results if i["youtube_id"] == youtube_id]