Skip to content

Commit

Permalink
fix(rss): add numeric check for season_id in podcast feed
Browse files Browse the repository at this point in the history
  • Loading branch information
bendikrb committed Nov 6, 2024
1 parent 44216f8 commit 69c9aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nrk_psapi/rss/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def build_episode_item(self, episode_id: str, series_data: PodcastSeries)
chapters_url = f"{self.base_url}/{series_data.id}/{episode.episode_id}/chapters.json"
extensions.append(PodcastChapters(chapters_url, "application/json+chapters"))

if episode.season_id:
if episode.season_id and episode.season_id.isnumeric():
extensions.append(PodcastSeason(int(episode.season_id), episode.season_title))

if episode_image := get_image(episode.square_image):
Expand Down

0 comments on commit 69c9aa5

Please sign in to comment.