What is Nostr?
James Cridland /
npub1g5h…t5sr
2023-11-04 09:59:35

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?
Author Public Key
npub1g5h6rwmps922vx6m3rfj23r9wlkkp9dzrwefuyzfkjktqnfwvxasc9t5sr