yt-dlp: [ie/bilibili] Broken in several bangumi series (grayscale release probably)
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
China
Provide a description that is worded well enough to be understood
https://www.bilibili.com/bangumi/play/ep755477
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.bilibili.com/bangumi/play/ep755477', '--cookies', 'www.bilibili.com_cookies.txt']
[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.06.203259 from yt-dlp/yt-dlp-master-builds (linux_exe)
[debug] Python 3.11.12 (CPython x86_64 64bit) - Linux-6.14.5-cachyos-x86_64-with (OpenSSL 3.1.8 11 Feb 2025)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.22.0, brotli-1.1.0, certifi-2025.04.26, curl_cffi-0.10.0, mutagen-1.47.0, requests-2.32.3, secretstorage-3.3.3, sqlite3-3.44.2, urllib3-2.4.0, websockets-15.0.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[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.06.203259 from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date (master@2025.05.06.203259 from yt-dlp/yt-dlp-master-builds)
[BiliBiliBangumi] Extracting URL: https://www.bilibili.com/bangumi/play/ep755477
[BiliBiliBangumi] 755477: Downloading webpage
ERROR: [BiliBiliBangumi] 755477: This video is for premium members only. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies
File "yt_dlp/extractor/common.py", line 748, in extract
File "yt_dlp/extractor/bilibili.py", line 887, in _real_extract
File "yt_dlp/extractor/common.py", line 1251, in raise_login_required
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (12 by maintainers)
Commits related to this issue
- [ie/BiliBiliBangumi] Fix extractor (#13416) Closes #13121 Authored by: c-basalt — committed to saschazepter/yt-dlp by c-basalt a year ago
seems to work
Everything is functioning well now. This command line is convenient. I appreciate your help, and I think it’s ready to be released as part of the stable version in its current state.
@Fullna-ui It conveys to me that you haven’t applied the patch. (And you shouldn’t be trying to apply patches to a pip installation anyways; clone the repository and run from source)
a new kind of playinfo is being rolled out on certain bangumi.
example
I’m geoblocked but I suppose we can extract formats from .body.parsedFragmentVideoInfoList