improved ryd error handeling, #283
This commit is contained in:
parent
7c3bfa94f3
commit
cc40f46325
|
@ -631,8 +631,8 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
|
|||
return False
|
||||
|
||||
dislikes = {
|
||||
"dislike_count": result["dislikes"],
|
||||
"average_rating": result["rating"],
|
||||
"dislike_count": result.get("dislikes", 0),
|
||||
"average_rating": result.get("rating", 0),
|
||||
}
|
||||
self.json_data["stats"].update(dislikes)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ djangorestframework==3.13.1
|
|||
Pillow==9.2.0
|
||||
redis==4.3.4
|
||||
requests==2.28.1
|
||||
ryd-client==0.0.3
|
||||
ryd-client==0.0.5
|
||||
uWSGI==2.0.20
|
||||
whitenoise==6.2.0
|
||||
yt_dlp==2022.8.8
|
||||
|
|
Loading…
Reference in New Issue