question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using bestvideo+bestaudio with certain websites gives an error

See original GitHub issue

Checklist

  • I’m reporting a broken site support issue
  • I’ve verified that I’m running yt-dlp version 2021.06.09
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

[debug] Command-line config: ['-R', '15', '-v', '-i', '-o', 'z:\\video\\%(title)s (%(id)s) [%(height)sp].%(ext)s', '--cookies', 'Z:\\cookies.txt', '-f', 'bestvideo+bestaudio', '--fixup', 'detect_or_warn', '--add-metadata', 'https://www.metacafe.com/watch/11636649/dancer4/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.06.09 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg 2021-05-19-git-2261cc6d8a-full_build-www.gyan.dev, ffprobe 2021-05-19-git-2261cc6d8a-full_build-www.gyan.dev
[debug] Proxy map: {}
[debug] [metacafe] Extracting URL: https://www.metacafe.com/watch/11636649/dancer4/
[metacafe] 11636649: Downloading webpage
[metacafe] 11636649: Extracting information
[metacafe] 11636649: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
ERROR: Requested format is not available
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1133, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1165, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1202, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2158, in process_video_result
yt_dlp.utils.ExtractorError: Requested format is not available

Description

This error is not only happening with certain videos nor with only metacafe, it happens also with xvideos and xhamster. IIRC this didn’t happened on youtube-dl, please fix this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
parasiteoflifecommented, Jun 18, 2021

@pukkandan Hey, one question. I’m using bv*+ba/b now and I’m getting this with several metacafe videos:

[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.06.09 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg 2021-05-19-git-2261cc6d8a-full_build-www.gyan.dev, ffprobe 2021-05-19-git-2261cc6d8a-full_build-www.gyan.dev
[debug] Proxy map: {}
[debug] [metacafe] Extracting URL: https://www.metacafe.com/watch/3354402/lorena_orozco_besame/
[metacafe] 3354402: Downloading webpage
[metacafe] 3354402: Extracting information
ERROR: the JSON object must be str, bytes or bytearray, not NoneType
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1133, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1154, in __extract_info
  File "yt_dlp\extractor\common.py", line 567, in extract
  File "yt_dlp\extractor\metacafe.py", line 230, in _real_extract
  File "yt_dlp\extractor\common.py", line 950, in _parse_json
  File "json\__init__.py", line 341, in loads
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Is that a bug? Video link is working fine.

0reactions
pukkandancommented, Jun 18, 2021

I can access the site, and other videos play correctly, but this one doesn’t. For now, lets assume its an issue on their side. If the video becomes playable in browser but still doesn’t download, open a new issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows: Cannot Connect to Certain Web Sites - Technipages
In Microsoft Edge you get “You're not connected” error. This article assumes you have troubleshot the basics such as the URL is typed...
Read more >
How to Fix Some Websites Not Loading/Opening in ... - YouTube
In this video I will show guys how to fix some websites are not loading or opening in your Browser. DNS: 8.8.8.84.2.2.2CMD Command:ipconfig ......
Read more >
Websites don't load - troubleshoot and fix error messages
Are you having trouble getting a website to load? This article will show you how to fix the problem so you can get...
Read more >
How to Fix the "This Site Can't Be Reached" Error (5 Ways)
Are you experiencing the "This Site Can't Be Reached" error? In this article, learn five ways to resolve this error.
Read more >
Change site permissions - Android - Google Chrome Help
You can allow or block permissions for a specific site. The site will use the permissions that you set instead of the default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found