yt-dlp: [PlaySuisse] Unable to download webpage: `HTTP Error 403: Forbidden` when logging in to Play Swiss

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

I wanted to download a episode of Tschugger of off Play Swiss but after adding my login it returned a Error 403: Forbidden. I logged on today and say that the changed something with there login system. (A prompt came up and informed me that I need to log back in because they changed some stuff around.) Note, to download this I used the yt-slp interface. Second note, this isn’t my fist time downloading from Play Swiss last time was about on the 8th of November 2024 and it worked fine.

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


[debug] Encodings: locale cp1252, fs utf-8, pref UTF-8, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT)
[debug] yt-dlp version nightly@2025.02.19.023542 from yt-dlp/yt-dlp-nightly-builds [4985a4041] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg N-118510-gbc1a3bfd2c-20250220 (setts), ffprobe N-118510-gbc1a3bfd2c-20250220
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2025.01.31, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.3.0, websockets-15.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1841 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2025.02.19.023542 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2025.02.19.023542 from yt-dlp/yt-dlp-nightly-builds)
[PlaySuisse] Downloading login page
[PlaySuisse] Logging in
[PlaySuisse] Downloading ID token
ERROR: [PlaySuisse] 3328544: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>)
  File "yt_dlp\extractor\common.py", line 743, in extract
  File "yt_dlp\extractor\common.py", line 649, in initialize
  File "yt_dlp\extractor\playsuisse.py", line 168, in _perform_login
  File "yt_dlp\extractor\common.py", line 915, in _request_webpage
  File "yt_dlp\extractor\common.py", line 902, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 4175, in urlopen
  File "yt_dlp\networking\common.py", line 117, in send
  File "yt_dlp\networking\_helper.py", line 208, in wrapper
  File "yt_dlp\networking\common.py", line 340, in send
  File "yt_dlp\networking\_requests.py", line 365, in _send
yt_dlp.networking.exceptions.HTTPError: HTTP Error 403: Forbidden

[GUI] yt-dlp.exe process has exited

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@Cagecellag All done. You should definitely change your password now

The fix will hit the nightly channel ~15 hours from now (when this comment was posted)

I’ve fixed the login method. I am now getting HTTP Error 403 on the m3u8 requests, but I think it may just be because I am geo-blocked.

@Cagecellag @v3DJG6GL could you test my changes? If you’re using the binary/executable, you can run:

yt-dlp --update-to bashonly/yt-dlp@playsuisse

to update to my pre-release test version. When you’re done testing, you can run:

yt-dlp --update-to stable@latest

to get back on the official release channel.

Cool it worked when i tried with your test branch, i was able to download a episode of a show without a problem

The problem is with the login procedure, I don’t need to be able to watch anything

@Cagecellag you might have to enable Access from the EU area, otherwise all content is geoblocked outside outside of switzerland: https://settings.srgssr.ch/profile/access-eu?swissness_redirect_uri=https%3A%2F%2Fwww.playsuisse.ch%2Fauth

Like i said in the issue this worked for me before and beside i live in switzerland anyway

Yes, I rather meant for @bashonly for debugging purposes if they doesn’t live in switzerland. IDK, but catching the stream urls might be important for debugging the issue…