From c703105c5e85d3dd7d9a9b823349535d715a4e56 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 11 Jan 2022 18:54:40 +0700 Subject: [PATCH] fix ryd 404 error for reindex and deactivate --- tubearchivist/home/src/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tubearchivist/home/src/index.py b/tubearchivist/home/src/index.py index 55a57e4..8a872f0 100644 --- a/tubearchivist/home/src/index.py +++ b/tubearchivist/home/src/index.py @@ -466,6 +466,9 @@ class YoutubeVideo: print(f"failed to query ryd api, skipping {self.youtube_id}") return False + if result["status"] == 404: + return False + dislikes = { "dislike_count": result["dislikes"], "average_rating": result["rating"],