question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SRF (Swiss Televison) broke site

See original GitHub issue
  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dl version 2020.09.06
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones
youtube-dl -v https://www.srf.ch/play/tv/dok/video/alkohol---der-globale-rausch\?urn\=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.srf.ch/play/tv/dok/video/alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.06
[debug] Python version 3.7.7 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2: Requesting header
WARNING: Falling back on generic information extractor.
[generic] alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2: Downloading webpage
[generic] alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2: Extracting information
ERROR: Unsupported URL: https://www.srf.ch/play/tv/dok/video/alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3382, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.srf.ch/play/tv/dok/video/alkohol---der-globale-rausch?urn=urn:srf:video:a763f288-c32a-4352-a33d-ffe5ce114ad2

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Surkalcommented, Sep 9, 2020

in extractor/srgssr.py, line 109 :

_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.

1reaction
github-com-bqmcommented, Sep 9, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

SRF zwei - Wikipedia
SRF zwei (Swiss Radio and Television Two) is a Swiss German-language free-to-air television channel run under the public SRG SSR broadcasting group.
Read more >
Android Apps by Schweizer Radio und Fernsehen (SRF) on ...
Stay informed with the SRF apps: news, sport, weather, videos, tv and radio shows, ... Current news and breaking news from Switzerland and...
Read more >
SRF - Schweizer Radio und Fernsehen [CH] - Cineuropa
SRF - Schweizer Radio und Fernsehen [CH]. Production Companies. (SRG SSR) Fernsehstrasse 1-4 8052 Zürich. tel: +41 44 305 66 11. e-mail ·...
Read more >
SRF Play TV - KODI Forum
Support for live TV (SRF 1, SRF 2 and SRF info). ... It now supports SRF live streams and live TV (only available...
Read more >
Schweizer Fernsehen | Logopedia - Fandom
SF DRS used its former logo as bug until 1997. In 1997, the television service was split into SF 1 and SF 2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found