steinuil / sarasara

Podcast RSS feed for RaiPlay sound
http://kirarin.hootr.club/sarasara/programmi/fantozzidipaolovillaggio
ISC License
7 stars 0 forks source link

Error playing episodes: `invalid audio file` #1

Open asymmetric opened 1 year ago

asymmetric commented 1 year ago

Tried playing episodes of this podcast using this proxy using overcast on iOS.

The subscription went fine, but no files can be downloaded: the error message is invalid audio file.

Let me know if you need any more info.

steinuil commented 1 year ago

Hmm, the link in the <enclosure> tag of the first episode is https://mediapolisvod.rai.it/relinker/relinkerServlet.htm?cont=DKGSblGDaPvCh9zKPSVAXAeeqqEEqualeeqqEEqual and for some reason it returns 403 when I try to access it with curl, but if I set -H 'User-agent: ' it correctly redirects to the audio file at https://creativemedia3-rai-it.akamaized.net/podcastcdn/Rai/audiocut/20866360_1800.mp4.

I think the relinker implements a check on the User-agent header and blocks it if it's not a browser or the raiplay app, so I assume Overcast makes a request with its own user agent and gets blocked by the relinker.

If this is the problem this I'd have to either:

Are there other podcasts that don't have this problem in Overcast? If there are, can you send me the links here?

steinuil commented 1 year ago

I fixed this with the latest commit, if you're running your own server please update it. I'll be updating https://kirarin.hootr.club/sarasara/ tomorrow probably.