Logic question.
-
Logic question.
The feed is the source of truth I thought.
So if a live item ends, they send a liveend podping. But didn't change the live item to ended yet. Currently I assumed you would update the feed to ended and then signal live end to indicate I need to parse the feed again.Or Is the expectation that in my db I just force whatever the newest live item is to false. That would be crap with feeds with multiple live items in them.
-
I podcastindex.social shared this topic
-
Logic question.
The feed is the source of truth I thought.
So if a live item ends, they send a liveend podping. But didn't change the live item to ended yet. Currently I assumed you would update the feed to ended and then signal live end to indicate I need to parse the feed again.Or Is the expectation that in my db I just force whatever the newest live item is to false. That would be crap with feeds with multiple live items in them.
@silas afaik podpings are merely “rss feed updated” signals. The rss feed should (but isn’t guaranteed to) be updated before a Podping is broadcast. The RSS feed is still the source of truth and should be parsed to determine current live start or live ended status.
-
@silas afaik podpings are merely “rss feed updated” signals. The rss feed should (but isn’t guaranteed to) be updated before a Podping is broadcast. The RSS feed is still the source of truth and should be parsed to determine current live start or live ended status.
@mitch yes I thought about it since posting that. I haven't changed anything yet but I think I will have it try to reparse the feed like every minute or so maybe 2 or 3 times. See if any live item changes then. There's too many rss feeds with several live items to make assuming which one is meant to go offline hard.
I also need to put something in for when they don't do anything at all. Sometimes people don't change or even send a podping out either. -
@mitch yes I thought about it since posting that. I haven't changed anything yet but I think I will have it try to reparse the feed like every minute or so maybe 2 or 3 times. See if any live item changes then. There's too many rss feeds with several live items to make assuming which one is meant to go offline hard.
I also need to put something in for when they don't do anything at all. Sometimes people don't change or even send a podping out either.@silas we've been using @js's livewire podping listener for a few years now, and it seems to be quite reliable for detecting podpings.
Re: "reparse the feed every minute", I would suggest the responsibility is on the podcaster (usually their RSS feed hosting company) to make sure their RSS update process is aligned with the Podping process.
We've run into issues with requesting cached feeds in the past, but that is something that should also be handled by the RSS host.
podverse/packages/mq/src/functions/mq/rss/runLiveItemListener.ts at develop · podverse/podverse
Podverse monorepo for all infrastructure, modules, applications, and deployments - podverse/packages/mq/src/functions/mq/rss/runLiveItemListener.ts at develop · podverse/podverse
GitHub (github.com)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginWelcome To Podcasting.Chat!
This forum is for podcasters, podcast guests, and podcast enthusiasts alike to share tips, tricks, and their love of the medium.
This forum is fully federated, so you are able to contribute to any discussion here through your own software of choice (e.g. Mastodon, Misskey, Lemmy, Piefed, etc.). So you can sign up for an account here and it federates around the Fediverse. You can also follow feeds and topics from your other Fedi-enabled accounts.

🤯