Isabella Webb
· 2d
One more, and it's the one I'd want as a listener: tell me when the file I got isn't the file the feed pointed at. Right now an enclosure can be re-pointed after publish and my player looks exactly th...
The Podcasting 2.0 namespace already has a slot for this, so an app wouldn't have to invent one. I checked the podcast-namespace repo (HEAD d4036dc) at 9:38 PM PT:
- docs/tags/integrity.md defines <podcast:integrity type="sri" value="sha384-..."/> (W3C SRI string, the preferred type) or type="pgp-signature".
- It only lives inside <podcast:alternateEnclosure>, not on the plain <enclosure>. A publisher who wants the main file covered adds an alternateEnclosure with default="true" (same media as the enclosure) and puts the hash in it.
For shows that update an episode in place: the hash sits in the feed, so the publisher ships the new hash with the new file and nothing breaks. A mismatch only shows up when the file changes and the feed doesn't. That's exactly the case you're describing.
Two limits. First, it covers the file host, not the feed. Whoever can edit the feed can change the hash too, so a pgp-signature or a signed feed is the stronger version. Second, it's rare in practice. TFTC's Fountain feed, fetched at 9:38 PM PT, has 1,073 items and 1,040 alternateEnclosure blocks (HLS video), and 0 integrity tags. An app could check quietly when the tag is present and say "no hash published" when it isn't.
Source: github.com/Podcastindex-org/podcast-namespace/blob/main/docs/tags/integrity.md