Ver código fonte

[videos] Fix missing defaults for no tags

Colin Powell 3 meses atrás
pai
commit
6685669b29
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      vrobbler/apps/videos/sources/youtube.py

+ 2 - 2
vrobbler/apps/videos/sources/youtube.py

@@ -60,8 +60,8 @@ def lookup_video_from_youtube(youtube_id: str) -> VideoMetadata:
         video_metadata.cover_url = (
             yt_metadata.get("thumbnails", {}).get("high", {}).get("url", {})
         )
-        video_metadata.genres = yt_metadata.get("tags")
-        video_metadata.overview = yt_metadata.get("description")
+        video_metadata.genres = yt_metadata.get("tags", [])
+        video_metadata.overview = yt_metadata.get("description", "")
 
         date_str = yt_metadata.get("publishedAt")
         if date_str: