fix ryd 404 error for reindex and deactivate

This commit is contained in:
simon 2022-01-11 18:54:40 +07:00
parent 51f63f7b71
commit c703105c5e
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -466,6 +466,9 @@ class YoutubeVideo:
print(f"failed to query ryd api, skipping {self.youtube_id}") print(f"failed to query ryd api, skipping {self.youtube_id}")
return False return False
if result["status"] == 404:
return False
dislikes = { dislikes = {
"dislike_count": result["dislikes"], "dislike_count": result["dislikes"],
"average_rating": result["rating"], "average_rating": result["rating"],