yt-dlp: Cannot download from PlaySuisse

Checklist

  • I’m reporting that yt-dlp is broken on a supported site
  • I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
  • I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

Switzerland

Provide a description that is worded well enough to be understood

PlaySuisse (https://www.playsuisse.ch/) is a public site of Swiss Television that holds the Swiss TV media library. Anyone can register a free account. yt-dlp fails to retrieve content from this site.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

sudo yt-dlp -vU -F --no-playlist --ignore-config --username PRIVATE --password PRIVATE "https://www.playsuisse.ch/watch/826338?locale=de"
[sudo] password for account:
[debug] Command-line config: ['-vU', '-F', '--no-playlist', '--ignore-config', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://www.playsuisse.ch/watch/826338?locale=de']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2025.05.03.201155 from yt-dlp/yt-dlp-master-builds [0feec6dc1] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: certifi-2020.06.20, requests-2.25.1, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-1.26.5 (unsupported)
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Plugin directories: none
[debug] Loaded 1857 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master-builds/releases/latest
Latest version: master@2025.05.03.201155 from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date (master@2025.05.03.201155 from yt-dlp/yt-dlp-master-builds)
[PlaySuisse] Requesting session ID
ERROR: [PlaySuisse] 826338: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 745, in extract
    self.initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 651, in initialize
    self._perform_login(username, password)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/playsuisse.py", line 157, in _perform_login
    request_id = parse_qs(self._request_webpage(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 917, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 400, in _send
    res = opener.open(urllib_req, timeout=self._calculate_timeout(request))
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 904, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4186, in urlopen
    return self._request_director.send(req)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/common.py", line 117, in send
    response = handler.send(request)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/common.py", line 359, in send
    return self._send(request)
  File "/usr/local/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 405, in _send
    raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop='redirect error' in str(e)) from e
yt_dlp.networking.exceptions.HTTPError: HTTP Error 403: Forbidden

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

For those who end up here but cannot use the impersonator: Open the video on Playsuisse with the browser console open on the “Network” tab, look for a “master.m3u8”. Copy the link to it, you can use that URL directly with yt-dlp.

adding this header seems to work too:

 --add-header "Origin: https://www.playsuisse.ch"

@zilti Thanks, Daniel, I actually got this to work!