ok.ru not downloading any video
Author: giosannCreated Aug 31, 2026Updated Sep 16, 2026
Labelssite-bug
Checklist
- I've read the NO AI / NO LLM POLICY and understand I may be blocked from the repository if it is violated
- 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
Italy
Provide a description that is worded well enough to be understood
Odnoklassniki (https://ok.ru/) has recently stopped working. any video i can try throws "ERROR: the JSON object must be str, bytes or bytearray, not dict"
below is the output example for a video but I can't find one that works so I assume all videos are affected.
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: ['-f', 'bestvideo+bestaudio/best', '-S', 'res,tbr', '--merge-output-format', 'mkv', '--cookies-from-browser', 'firefox', '-vU', 'https://ok.ru/video/17008250396256']
[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-nightly-builds [bbc809a11] (zip)
[debug] Python 3.14.7 (CPython x86_64 64bit) - Linux-7.2.2-1-cachyos-x86_64-with-glibc2.44 (OpenSSL 3.6.4 25 Aug 2026, glibc 2.44)
[debug] exe versions: ffmpeg 9.0.1 (setts), ffprobe 9.0.1, rtmpdump 2.6
[debug] Optional libraries: Cryptodome-3.23.0, brotlicffi-1.2.0.1, certifi-2026.07.22, curl_cffi-0.16.2, mutagen-1.48.1, requests-2.34.2, secretstorage-3.5.0, sqlite3-3.53.4, urllib3-2.7.0, websockets-16.1.1, xattr-1.3.0, yt_dlp_ejs-0.8.0
[debug] JS runtimes: deno-2.9.6
[debug] Proxy map: {}
Extracting cookies from firefox
[debug] Extracting cookies from: "/home/giosann/.config/mozilla/firefox/v4049rfc.default-release/cookies.sqlite"
[debug] Firefox cookies database version: 17
Extracted 3112 cookies from firefox
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Plugin directories: none
[debug] Loaded 1745 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-nightly-builds)
[Odnoklassniki] Extracting URL: https://ok.ru/video/17008250396256
[Odnoklassniki] 17008250396256: Downloading desktop webpage
ERROR: the JSON object must be str, bytes or bytearray, not dict
Traceback (most recent call last):
File "/usr/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1730, in wrapper
return func(self, *args, **kwargs)
File "/usr/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1865, in __extract_info
ie_result = ie.extract(url)
File "/usr/bin/yt-dlp/yt_dlp/extractor/common.py", line 764, in extract
ie_result = self._real_extract(url)
File "/usr/bin/yt-dlp/yt_dlp/extractor/odnoklassniki.py", line 246, in _real_extract
return self._extract_desktop(url)
~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/usr/bin/yt-dlp/yt_dlp/extractor/odnoklassniki.py", line 291, in _extract_desktop
metadata = self._parse_json(metadata, video_id)
File "/usr/bin/yt-dlp/yt_dlp/extractor/common.py", line 1084, in _parse_json
return json.loads(
~~~~~~~~~~^
json_string, cls=LenientJSONDecoder, strict=False, transform_source=transform_source, **parser_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/json/__init__.py", line 345, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
f'not {s.__class__.__name__}')
TypeError: the JSON object must be str, bytes or bytearray, not dict
Source: yt-dlp/yt-dlp