yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
82.71k stars 6.44k forks source link

[peloton] "No active subscription found" for free video with free account #9293

Open valleythorn opened 6 months ago

valleythorn commented 6 months ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

Canada

Provide a description that is worded well enough to be understood

Tried downloading a video from Peloton and get the "No active subscription found" error. Have a Peloton account, user id and password. Confirmed the video plays fine in the browser. Others have had this problem in the past. Tried the following solutions:

  1. Tried --username and --password instead of -u -p, Same error
  2. Tried without cookies and with cookies in 2 different browsers (Firefox and Chrome). Same error.
  3. Tried extracting cookies from chrome and using the local cookies file. Same error Any help would be appreciated.

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', '--cookies-from-browser', 'chrome', 'https://members.onepeloton.com/classes/player/be1bac4432f34a9db220744dd89039e2']
Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Basement\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[debug] Found local state file at "C:\Users\Basement\AppData\Local\Google\Chrome\User Data\Local State"
Extracted 142 cookies from chrome
[debug] cookie version breakdown: {'v10': 143, 'other': 0, 'unencrypted': 0}
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-113801-g6c83cd5cb3-20240224 (setts)
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[peloton] Extracting URL: https://members.onepeloton.com/classes/player/be1bac4432f34a9db220744dd89039e2
[peloton] be1bac4432f34a9db220744dd89039e2: Starting session
[peloton] be1bac4432f34a9db220744dd89039e2: Downloading JSON metadata
[peloton] be1bac4432f34a9db220744dd89039e2: Downloading token
ERROR: [peloton] be1bac4432f34a9db220744dd89039e2: No active subscription found; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
File "yt_dlp\extractor\common.py", line 718, in extract
File "yt_dlp\extractor\peloton.py", line 122, in _real_extract
File "yt_dlp\extractor\peloton.py", line 102, in _get_token
bashonly commented 6 months ago

Possible duplicate of #6854

Try with -u "username" -p "password" instead of --cookies-from-browser

valleythorn commented 6 months ago

Same issue using -u and -p and no --cookies-from-browser.

See debug code below:

[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://members.onepeloton.com/classes/player/be1bac4432f34a9db220744dd89039e2']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-113801-g6c83cd5cb3-20240224 (setts)
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[peloton] Extracting URL: https://members.onepeloton.com/classes/player/be1bac4432f34a9db220744dd89039e2
[peloton] be1bac4432f34a9db220744dd89039e2: Starting session
[peloton] be1bac4432f34a9db220744dd89039e2: Logging in
[peloton] be1bac4432f34a9db220744dd89039e2: Starting session
[peloton] be1bac4432f34a9db220744dd89039e2: Downloading JSON metadata
[peloton] be1bac4432f34a9db220744dd89039e2: Downloading token
ERROR: [peloton] be1bac4432f34a9db220744dd89039e2: No active subscription found; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 718, in extract
  File "yt_dlp\extractor\peloton.py", line 122, in _real_extract
  File "yt_dlp\extractor\peloton.py", line 102, in _get_token
valleythorn commented 6 months ago

Just wanted to add that while a user id and password is required, I signed up for a free Peloton account and trying to download a free video. No need for a paid account to replicate the issue.