Skip to content

Commit

Permalink
Merge pull request #41 from jhogervorst/episode-metadata
Browse files Browse the repository at this point in the history
Episode metadata improvements
  • Loading branch information
ThijsRay authored May 13, 2024
2 parents 9ef04d8 + e5f9d6d commit 4773d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,11 @@ def extract_audio_url(episode):

async def addFeedEntry(fg, episode, session, locale):
fe = fg.add_entry()
fe.guid(episode["id"])
fe.title(episode["title"])
fe.description(episode["description"])
fe.pubDate(episode["datetime"])
fe.pubDate(episode["publishDatetime"])
fe.podcast.itunes_image(episode["imageUrl"])

url, duration = extract_audio_url(episode)
if url is None:
Expand Down Expand Up @@ -334,7 +336,7 @@ async def podcastsToRss(podcast_id, data, locale):
artist = podcast["authorName"]
if artist is None:
artist = last_episode["artist"]
fg.author({"name": artist})
fg.podcast.itunes_author(artist)

if not PUBLIC_FEEDS:
fg.podcast.itunes_block(True)
Expand Down
1 change: 1 addition & 0 deletions podimo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ async def getPodcasts(self, podcast_id, scraper):
imageUrl
description
datetime
publishDatetime
title
audio {
url
Expand Down

0 comments on commit 4773d01

Please sign in to comment.