Skip to content
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

playsuisse: support the EU #9761

Open
9 of 10 tasks
julianfairfax opened this issue Apr 22, 2024 · 0 comments
Open
9 of 10 tasks

playsuisse: support the EU #9761

julianfairfax opened this issue Apr 22, 2024 · 0 comments
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development geo-blocked Content is geo-blocked site-enhancement Feature request for some website triage Untriaged issue

Comments

@julianfairfax
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Switzerland (Europe)

Example URLs

https://www.playsuisse.ch/watch/2764498?episodeId=2775323

Provide a description that is worded well enough to be understood

Play Suisse supports allowing an account to view content on it from the EU, rather than just Switzerland. yt-dlp however, only supports playing videos from Switzerland (as you can see from the URL: https://stipo2-vod-prod.akamaized.net/stipo/2775323_2cd91dcea634c9b16152646b8a61d661/hdntl=exp=1713887365~acl=%2fstipo%2f2775323_2cd91dcea634c9b16152646b8a61d661%2f*~data=hdntl,allowedCountries%3dswiss~hmac=cbbc90accaf77a1bdb857db3ec2d60ec65bad1c306b4b5e532cba6a5946628cd/index-f5-v1.m3u8, allowedCountries%3dswiss).

A URL from network debugging of the Play Suisse website shows that it supports playing videos from the EU: https://stipo2-vod-prod.akamaized.net/stipo/2775323_3e6188165c4e076d28f0ed578c759dfa/hdntl=exp=1713887440~acl=%2Fstipo%2F2775323_3e6188165c4e076d28f0ed578c759dfa%2F*~data=hdntl,allowedCountries%3Deurope~hmac=87e851f110c4e180c80b34cd9efbfa19a5b4a8de696e07ea6edbbf1bbf6f54f9/index-f2-v1.m3u8, allowedCountries%3Deurope.

I'm not sure exactly how yt-dlp gets the URLs for Play Suisse videos, but it would be nice if this feature were somehow supported.

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] Command-line config: ['-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.playsuisse.ch/watch/2764498?episodeId=2775323', '-o', '-', '-f', 'best/bestvideo+bestaudio[language=de]', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [615a84447] (pip)
[debug] Python 3.11.9 (CPython x86_64 64bit) - Linux-6.6.15-amd64-x86_64-with-glibc2.38 (OpenSSL 3.1.5 30 Jan 2024, glibc 2.38)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Post-Processor Plugins: TCEmbedSubtitlePP, TCEmbedThumbnailPP, TCMetadataPP, TCSubtitlesConvertorPP
[debug] Plugin directories: ['/home/user/.var/app/org.nickvision.tubeconverter/config/yt-dlp/plugins/tubeconverter/yt_dlp_plugins']
[debug] Loaded 1803 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
[debug] Downloading _update_spec from https://github.com/yt-dlp/yt-dlp/releases/latest/download/_update_spec
Current version: [email protected] from yt-dlp/yt-dlp
Latest version: [email protected] from yt-dlp/yt-dlp
ERROR: You installed yt-dlp with pip or using the wheel from PyPi; Use that to update
[PlaySuisse] Downloading login page
[PlaySuisse] Logging in
[PlaySuisse] Downloading ID token
[PlaySuisse] Extracting URL: https://www.playsuisse.ch/watch/2764498?episodeId=2775323
[PlaySuisse] 2775323: Downloading JSON metadata
[PlaySuisse] 2775323: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] 2775323: Downloading 1 format(s): HLS-3104+HLS-audio0-Deutsch
[debug] Invoking ffmpeg downloader on "https://stipo2-vod-prod.akamaized.net/stipo/2775323_2cd91dcea634c9b16152646b8a61d661/hdntl=exp=1713887365~acl=%2fstipo%2f2775323_2cd91dcea634c9b16152646b8a61d661%2f*~data=hdntl,allowedCountries%3dswiss~hmac=cbbc90accaf77a1bdb857db3ec2d60ec65bad1c306b4b5e532cba6a5946628cd/index-f5-v1.m3u8", "https://stipo2-vod-prod.akamaized.net/stipo/2775323_2cd91dcea634c9b16152646b8a61d661/hdntl=exp=1713887365~acl=%2fstipo%2f2775323_2cd91dcea634c9b16152646b8a61d661%2f*~data=hdntl,allowedCountries%3dswiss~hmac=cbbc90accaf77a1bdb857db3ec2d60ec65bad1c306b4b5e532cba6a5946628cd/index-f7-a1.m3u8"
[download] Destination: -
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://stipo2-vod-prod.akamaized.net/stipo/2775323_2cd91dcea634c9b16152646b8a61d661/hdntl=exp=1713887365~acl=%2fstipo%2f2775323_2cd91dcea634c9b16152646b8a61d661%2f*~data=hdntl,allowedCountries%3dswiss~hmac=cbbc90accaf77a1bdb857db3ec2d60ec65bad1c306b4b5e532cba6a5946628cd/index-f5-v1.m3u8' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://stipo2-vod-prod.akamaized.net/stipo/2775323_2cd91dcea634c9b16152646b8a61d661/hdntl=exp=1713887365~acl=%2fstipo%2f2775323_2cd91dcea634c9b16152646b8a61d661%2f*~data=hdntl,allowedCountries%3dswiss~hmac=cbbc90accaf77a1bdb857db3ec2d60ec65bad1c306b4b5e532cba6a5946628cd/index-f7-a1.m3u8' -c copy -map 0:0 -map 1:0 -f mpegts -
@julianfairfax julianfairfax added site-enhancement Feature request for some website triage Untriaged issue labels Apr 22, 2024
@bashonly bashonly added account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development geo-blocked Content is geo-blocked labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development geo-blocked Content is geo-blocked site-enhancement Feature request for some website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

2 participants