From: Timm Date: Tue, 7 Jan 2025 23:45:40 +0000 (+0100) Subject: Fix error on missing key in RSS Podcast data. (#1832) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=275b669b7c1b9fc79cce5348becf84c356f11cda;p=music-assistant-server.git Fix error on missing key in RSS Podcast data. (#1832) Fix: Add troubleshooting hint in Development.md. Fix: Prevent error on missing key in RSS Podcast data. --- diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 74f99bbd..ed277002 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -16,6 +16,7 @@ With this repository cloned locally, execute the following commands in a termina * Run our development setup script to setup the development environment: * `scripts/setup.sh` (creates a new separate virtual environment to nicely separate the project dependencies) * The setup script will create a separate virtual environment (if needed), install all the project/test dependencies and configure pre-commit for linting and testing. +* Make sure, that the python interpreter in VS Code is set to the newly generated venv. * Debug: Hit (Fn +) F5 to start Music Assistant locally * The pre-compiled UI of Music Assistant will be available at `localhost:8095` 🎉 diff --git a/music_assistant/providers/podcastfeed/__init__.py b/music_assistant/providers/podcastfeed/__init__.py index 9fb8f0a8..1483724d 100644 --- a/music_assistant/providers/podcastfeed/__init__.py +++ b/music_assistant/providers/podcastfeed/__init__.py @@ -266,6 +266,7 @@ class PodcastMusicprovider(MusicProvider): ) ] episode.metadata.description = episode_obj["description"] - episode.metadata.explicit = episode_obj["explicit"] + if "explicit" in episode_obj: + episode.metadata.explicit = episode_obj["explicit"] return episode