Fix error on missing key in RSS Podcast data. (#1832)
authorTimm <saeugetier@googlemail.com>
Tue, 7 Jan 2025 23:45:40 +0000 (00:45 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2025 23:45:40 +0000 (00:45 +0100)
Fix: Add troubleshooting hint in Development.md.
Fix: Prevent error on missing key in RSS Podcast data.

DEVELOPMENT.md
music_assistant/providers/podcastfeed/__init__.py

index 74f99bbd86f2cda88a135f0c595d0f0cb8957327..ed2770022849c330bf3331018b51a67516353aea 100644 (file)
@@ -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` ðŸŽ‰
 
index 9fb8f0a8b4cc83611e37aadc270a792e1c3ff41c..1483724ddaf612d4bd9b69478a84033352b5642e 100644 (file)
@@ -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