-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mopidy fails to download rss: 403 #37
Comments
First issue: Bad luck. If the server for whatever reason denies access to Mopidy-Podcast, there's little we can do. |
tkem, I don't think that any server especially denies Mopidy-Podcasts access while allowing everyone else. Well how can I test this? What is the user-agent string mopidy-podcast uses? If they really deny access to that particular user agent, it should be reproducible. |
@vasyugan: Of course not, but if servers deny access to certain clients, e.g. based on user-agent, then they (hopefully) have valid reasons and surely the right to do so. IIRC, #31 was a similar issue; don't know what happened with that, though. Starting with Mopidy-Podcast v2.0, the User-Agent is as provided by I'll investigate the second issue ASAP; this may actually be a bug with handling redirects. Thanks for reporting! |
tkem, I just asked you for the user agent string to test it. wget allows to specify a custom user agent with the -u switch. If the server really locks out that agent, this should be reproducible. From the link you have provided I have unfortunately been unable to guess how the user agent string looks like. Anyway, I'll write to the webmaster of freie-radios.net and see if they respond. |
I should note, that this is not a cloudflare server, according to the HTTP headers, it's an Apache 2.2.22. Well, anyway, I hope they will respond |
@vasyugan: as the docs say, the actual user-agent string depends on the respective versions of Mopidy and Mopidy-Podcast, as well as your Python interpreter. For e.g. Mopidy-Podcast v2.0.0, it can be retrieved like this:
|
I have contacted the hosters and apparently they had blacklisted python-urllib as a bad user agent. They removed it from the list, now it works. Which indicates that the HTTP client does not send the mopidy user agent but the standard one from python urllib. This is what they found in the server log: [my IP Address] 9 - - [19/May/2016:14:11:55 +0200] "GET /portal/podcast.php?rss HTTP/1.1" 403 491 "-" "Python-urllib/2.7 |
@vasyugan: Which Mopidy-Podcast version are you using? Versions <2.0 send the standard urllib header. |
the version, which is in the AUR of Arch Linux: 1.1.2 |
Regarding issue #2: I tried the BBC redirect URL, and it seems to be really slow... I had to set the |
flagged mopidy-podcast in the AUR out-of-date |
For some reason, the RSS http://www.freie-radios.net/portal/podcast.php?rss fails in Mopidy-Podcast. I can view the RSS in a browser just fine and it also works in BeyondPod:
ERROR Error loading podcast http://www.freie-radios.net/portal/podcast.php?rss: HTTP Error 403: Forbidden
I also get a timeout for http://downloads.bbc.co.uk/podcasts/worldservice/docarchive/rss.xml, which when loaded in a browser redirects to
http://www.bbc.co.uk/programmes/p02nq0lx/episodes/downloads.rss
The text was updated successfully, but these errors were encountered: