"This video is not available" on some youtube videos

See original GitHub issue

Checklist

Region

No response

Description

I notice that when I use yt-dlp with the function "–extractor-args youtube:player_client=android " (obliged to use it, otherwise the download never finishes because of the youtube limitation and my internet connection), some videos do not download correctly, example with this one : https://www.youtube.com/watch?v=g_Y1kmvS05o

I have encountered this problem rarely but it is systematic for some videos. NB: I have activated the lazyextractors.

Verbose log

root@server:~/test# yt-dlp -Uv --extractor-args youtube:player_client=android https://www.youtube.com/watch?v=g_Y1kmvS05o
[debug] Command-line config: ['-Uv', '--extractor-args', 'youtube:player_client=android', 'https://www.youtube.com/watch?v=g_Y1kmvS05o']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] yt-dlp version 2021.10.10 (source)
[debug] Lazy loading extractors enabled
[debug] Plugins: ['SamplePluginPP']
[debug] Git HEAD: 8063de510
[debug] Python version 3.9.7 (CPython 64bit) - Linux-4.9.0-16-amd64-x86_64-with-glibc2.24
[debug] exe versions: ffmpeg 4.1.2, ffprobe 4.1.2, phantomjs 2.1.1
[debug] Optional libraries: sqlite
[debug] ANSI escape support: stdout = True, stderr = True
[debug] Proxy map: {}
yt-dlp is up to date (2021.10.10)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=g_Y1kmvS05o
[youtube] g_Y1kmvS05o: Downloading webpage
[youtube] g_Y1kmvS05o: Downloading android player API JSON
ERROR: [youtube] g_Y1kmvS05o: This video is not available
Traceback (most recent call last):
  File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 589, in extract
    ie_result = self._real_extract(url)
  File "/opt/yt-dlp/yt_dlp/extractor/youtube.py", line 2853, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 1085, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)
yt_dlp.utils.ExtractorError: This video is not available
Traceback (most recent call last):
  File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 589, in extract
    ie_result = self._real_extract(url)
  File "/opt/yt-dlp/yt_dlp/extractor/youtube.py", line 2853, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 1085, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)
yt_dlp.utils.ExtractorError: This video is not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/yt-dlp/yt_dlp/YoutubeDL.py", line 1263, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/yt-dlp/yt_dlp/YoutubeDL.py", line 1288, in __extract_info
    ie_result = ie.extract(url)
  File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 605, in extract
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [youtube] g_Y1kmvS05o: This video is not available

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MinePlayersPEcommented, Oct 22, 2021

Can confirm that this doesn’t work on the YouTube app, so not sure what can be done (especially since using clients seperately isn’t completely officially recommended either) Screenshot_2021-10-22-17-36-37-893_com.vanced.android.youtube.jpg

1reaction
coletdjnzcommented, Oct 22, 2021

–extractor-args

Just to be sure, it is no longer necessary to fill in the “–extractor-args” because by default yt-dlp already uses the android client, and if it does not work it uses the web client?

Yep. Default is --extractor-args youtube:player_client=android,web

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix "This video is not available message on YouTube"
Part 1. How to Fix This Video Is Not Available Error on YouTube or Device · 1. Refresh the web page and restart...
Read more >
Youtube Say This video is not available. How to fix it?
To fix any Youtube common errors including the “This video is not available”, the first thing you can try is to restart the...
Read more >
2022 “This video is not available” – How to Fix the Error on ...
Solutions for “This video is not available” Message on YouTube · Refresh the web browser · Clear the cache · Try disabling or...
Read more >
What does it mean on YouTube when it simply says ... - Quora
The uploader has deleted the video but the embedded video in some other location still exists. Hence, it says “Video not Available”.
Read more >
Youtube is showing "this video is not available" message on ...
Youtube seems to have begun a campaign of censorship and removal of videos for discussing, mentioning or referring to any number of topics...
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