-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
SRF (Swiss Televison) broke site #26556
Comments
Interestingly, the URL pasted from the address window (https://www.srf.ch/play/tv/dok/video/alkohol---der-globale-rausch\?urn\=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2) does not work when pasted back in the browser. |
|
Related to #26555 :) |
It's georestricted to Switzerland, but try https://www.srf.ch/play/tv/dok/video/alkohol?id=a763f288-c32a-4352-a33d-ffe5ce114ad2 |
I have the same issue. youtube-dl Worked until yesterday for srf.ch URLs, and it's not working anymore today. I am located in Switzerland. Anything I can do to help debug this issue? |
I can also confirm, that the file habi is trying to download still worked earlier, sind I successfully downloaded the same video some days back... |
I am located in Switzerland with a Swiss ISP. |
You get this URL by taking the id from your original URL (everything after video: ) and then adding this to this: https://www.srf.ch/play/tv/dok/video/alkohol?id= I just tried this with another video, and it works! |
You actually don't have to give the whole keyword "alkohol" in the base part of the URL. One letter is enough. So you can take this as base: https://www.srf.ch/play/tv/dok/video/a?id= And then add the id to it, giving you: https://www.srf.ch/play/tv/dok/video/a?id=a763f288-c32a-4352-a33d-ffe5ce114ad2 |
in _VALID_URL = r'''(?x)
https?://
(?:(?:www|play)\.)?
(?P<bu>srf|rts|rsi|rtr|swissinfo)\.ch/play/(?:tv|radio)/
(?:
[^/]+/(?P<type>video|audio)/[^?]+|
popup(?P<type_2>video|audio)player
)
\?id=(?P<id>[0-9a-f\-]{36}|\d+)
''' This regular expression must be updated to capture new URLs. |
Sorry to have been imprecise:
You get this URL by taking the id from your original URL (everything after video: ) and then adding this to this: https://www.srf.ch/play/tv/dok/video/alkohol?id=
So without manual intervention and manipulation of the URL it‘s not possible?
|
Maybe first workaround. Change the line (line 117 +/- 10) in srgssr.py extractor. Tested with the Tagesschau link. I think there will be problems with other links. I will try to add the old style as fallback too. |
For the time being you have to manipulate the URL yourself. Or fix the source code as given above, and compile youtube-dl yourself. But since it's now clear what the issue is, and the resolution is straight forward, a fixed version should be released soon... |
And it's actually even simpler to change the URL, so that the current regex will pars it: Simply replace the whole becomes |
I think we have to add an URL to _TESTS for the new URL pattern also. Maybe someone can provide a long living URL accessible from outside CH? I just tested it with the tagesschau URLs and these just living for a few days. |
Try this one (It's from June. I just tested in on a server in Germany. Doesn't seem to be geo-restricted, and it still works): |
Thx. Local test works. I add a lazzy testline to the PR. Hope this will be enough. |
Description
I've used
youtube-dl
before for downloading DOKs from SRF (to watch in the train).The linked DOK cannot be downloaded with a recent version.
The text was updated successfully, but these errors were encountered: