James Cridland on Nostr: I have an idea. But in order to do it, I'd like to look at a podcast feed and work ...
I have an idea. But in order to do it, I'd like to look at a podcast feed and work out the average duration of an episode.
The /episodes API point on the Podcast Index appears to mirror what's in the feed, so if duration=0 in the feed, it appears as zero in the episodes API, like (if you're logged in) https://api.podcastindex.org/api/1.0/episodes/byfeedid?id=5438258&pretty - this feed has "0" durations for many of the episodes because that's what it says in the feed.
Is the only way to calculate the total duration a request to audio?
The /episodes API point on the Podcast Index appears to mirror what's in the feed, so if duration=0 in the feed, it appears as zero in the episodes API, like (if you're logged in) https://api.podcastindex.org/api/1.0/episodes/byfeedid?id=5438258&pretty - this feed has "0" durations for many of the episodes because that's what it says in the feed.
Is the only way to calculate the total duration a request to audio?