yt-dlp: [RTBF] "ERROR: An extractor error has occurred." using "--cookies-from-browser" or --cookies
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I remove or skip any mandatory* field
Checklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2022.08.14 (update instructions) or later (specify commit)
- 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 the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Provide a description that is worded well enough to be understood
[Note: existing issue #4671 is still open but I was advised to open a new issue.]
Since updating to 2022.08.14, I cannot download videos from RTBF with the option “–cookies-from-browser”. I can indeed download videos using -u username -p password.
Not sure if this helps, but I have saved two dumps here: https://gist.github.com/Ottaviocr/057f03cf1145a521f39b16c5ab826430
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>
) - Copy the WHOLE output (starting with
[debug] Command-line config
) and insert it below
Complete Verbose Output
$ yt-dlp -vU
[debug] Command-line config: ['-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 2022.08.14 [5593720] (zip)
[debug] Python 3.9.2 (CPython 64bit) - Linux-5.18.0-0.bpo.1-amd64-x86_64-with-glibc2.33 (glibc 2.33)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0-static (setts), ffprobe 5.0-static
[debug] Optional libraries: Cryptodome-3.9.7, brotli-1.0.9, certifi-2020.06.20, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.14, Current version: 2022.08.14
yt-dlp is up to date (2022.08.14)
$ yt-dlp --cookies-from-browser firefox https://www.rtbf.be/auvio/detail_jt-19h30?id=2929547 -v
[debug] Command-line config: ['--cookies-from-browser', 'firefox', 'https://www.rtbf.be/auvio/detail_jt-19h30?id=2929547', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.08.14 [5593720] (zip)
[debug] Python 3.9.2 (CPython 64bit) - Linux-5.18.0-0.bpo.1-amd64-x86_64-with-glibc2.33 (glibc 2.33)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0-static (setts), ffprobe 5.0-static
[debug] Optional libraries: Cryptodome-3.9.7, brotli-1.0.9, certifi-2020.06.20, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "/home/oc/.mozilla/firefox/i0z6z7rn.default/cookies.sqlite"
[Cookies] Extracted 289 cookies from firefox
[debug] Proxy map: {}
[debug] [RTBF] Extracting URL: https://www.rtbf.be/auvio/detail_jt-19h30?id=2929547
[RTBF] 2929547: Downloading webpage
[RTBF] 2929547: Downloading JSON metadata
ERROR: 2929547: An extractor error has occurred. (caused by KeyError('id_token')); 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 "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 666, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/redbee.py", line 345, in _real_extract
fmts, subs = self._get_formats_and_subtitles(url, media_id)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/redbee.py", line 254, in _get_formats_and_subtitles
session_jwt = self._download_json(
KeyError: 'id_token'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- [extractor/rtbf] Fix jwt extraction (#4738) Closes #4683 Authored by: elyse0 — committed to yt-dlp/yt-dlp by elyse0 2 years ago
Latest update to 2022.09.01 fixes it. Thanks.
When is this going to show up in master? My latest binary is still at 2022.08.19.
$ yt-dlp -vU [debug] Command-line config: [‘-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 2022.08.19 [48c88e0] (zip) [debug] Python 3.9.2 (CPython 64bit) - Linux-5.18.0-0.bpo.1-amd64-x86_64-with-glibc2.33 (glibc 2.33) [debug] Checking exe version: ffmpeg -bsfs [debug] Checking exe version: ffprobe -bsfs [debug] exe versions: ffmpeg 5.0-static (setts), ffprobe 5.0-static [debug] Optional libraries: Cryptodome-3.9.7, brotli-1.0.9, certifi-2020.06.20, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3 [debug] Proxy map: {} [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: 2022.08.19, Current version: 2022.08.19 yt-dlp is up to date (2022.08.19)
$ yt-dlp https://www.rtbf.be/auvio/detail_jt-13h?id=2931294 --cookies-from-browser firefox -v [debug] Command-line config: [‘https://www.rtbf.be/auvio/detail_jt-13h?id=2931294’, ‘–cookies-from-browser’, ‘firefox’, ‘-v’] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version 2022.08.19 [48c88e0] (zip) [debug] Python 3.9.2 (CPython 64bit) - Linux-5.18.0-0.bpo.1-amd64-x86_64-with-glibc2.33 (glibc 2.33) [debug] Checking exe version: ffmpeg -bsfs [debug] Checking exe version: ffprobe -bsfs [debug] exe versions: ffmpeg 5.0-static (setts), ffprobe 5.0-static [debug] Optional libraries: Cryptodome-3.9.7, brotli-1.0.9, certifi-2020.06.20, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3 [Cookies] Extracting cookies from firefox [debug] Extracting cookies from: “/home/oc/.mozilla/firefox/i0z6z7rn.default/cookies.sqlite” [Cookies] Extracted 289 cookies from firefox [debug] Proxy map: {} [debug] [RTBF] Extracting URL: https://www.rtbf.be/auvio/detail_jt-13h?id=2931294 [RTBF] 2931294: Downloading webpage [RTBF] 2931294: Downloading JSON metadata ERROR: 2931294: An extractor error has occurred. (caused by KeyError(‘id_token’)); 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 “/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py”, line 666, in extract ie_result = self._real_extract(url) File “/usr/local/bin/yt-dlp/yt_dlp/extractor/redbee.py”, line 364, in _real_extract fmts, subs = self.get_formats_and_subtitles(url, f’live{media_id}’ if is_live else media_id) File “/usr/local/bin/yt-dlp/yt_dlp/extractor/redbee.py”, line 258, in _get_formats_and_subtitles session_jwt = self._download_json( KeyError: ‘id_token’
Check your inbox.