Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError(1)); #25722

Open
Midorina opened this issue Jun 19, 2020 · 0 comments

Comments

@Midorina
Copy link

@Midorina Midorina commented Jun 19, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • 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 issues including closed ones

Verbose log

PS C:\Users\Mido> youtube-dl ytsearch:yoiyoi -v --cookies C:\Users\Mido\Desktop\cookies.txt
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['ytsearch:yoiyoi', '-v', '--cookies', 'C:\\Users\\Mido\\Desktop\\cookies.txt']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.8.3 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg git-2020-01-10-3d894db, ffprobe git-2020-01-10-3d894db
[debug] Proxy map: {}
[youtube:search] query "yoiyoi": Downloading page 1
ERROR: An extractor error has occurred. (caused by KeyError(1)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\common.py", line 2995, in _real_extract
    return self._get_n_results(query, 1)
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\youtube.py", line 3180, in _get_n_results
    html_content = data[1]['body']['content']
KeyError: 1
Traceback (most recent call last):
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\common.py", line 2995, in _real_extract
    return self._get_n_results(query, 1)
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\youtube.py", line 3180, in _get_n_results
    html_content = data[1]['body']['content']
KeyError: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "C:\Users\Mido\AppData\Roaming\Python\Python38\site-packages\youtube_dl\extractor\common.py", line 543, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError(1)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

If you attempt to do a YouTube search with a cookie file, this error raises. The example command and the verbose log are both shown above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.