From 275b669b7c1b9fc79cce5348becf84c356f11cda Mon Sep 17 00:00:00 2001 From: Timm Date: Wed, 8 Jan 2025 00:45:40 +0100 Subject: [PATCH] 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. --- DEVELOPMENT.md | 1 + music_assistant/providers/podcastfeed/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1