steinuil/sarasara

Error playing episodes: `invalid audio file`

Opened this issue · 2 comments

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.

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:

  • make a request to each episode link while generating the RSS XML to resolve it to the correct audio file, which would increase loading time a lot
  • implement another endpoint to resolve the relinker links, and in the RSS XML change the <enclosure> links to this endpoint

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

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.