From fa25a561269cfc31c7985dc0423c8aafd0e58b31 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 22 Mar 2022 13:07:22 +0700 Subject: [PATCH] fail open for in continue watching videos building --- tubearchivist/home/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 0626597..d75566c 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -201,6 +201,9 @@ class ArchivistResultsView(ArchivistViewConfig): "ta_video/_search", self.default_conf, data=data ) videos = search.get_data() + if not videos: + return False + for video in videos: youtube_id = video["source"]["youtube_id"] matched = [i for i in results if i["youtube_id"] == youtube_id]