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

search keyword bug #25665

Closed
SooOverpowered opened this issue Jun 14, 2020 · 3 comments
Closed

search keyword bug #25665

SooOverpowered opened this issue Jun 14, 2020 · 3 comments
Labels

Comments

@SooOverpowered
Copy link

@SooOverpowered SooOverpowered commented Jun 14, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.06.06
  • 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

C:\Windows\system32>youtube-dl -v hypnodancer
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'hypnodancer']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.06.06
[debug] Python version 3.8.3rc1 (CPython) - Windows-10-10.0.19645-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] hypnodancer: Downloading webpage
ERROR: hypnodanceo: YouTube said: This video is unavailable.
Sorry about that.
Traceback (most recent call last):
  File "c:\program files\python38\lib\site-packages\youtube_dl\YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "c:\program files\python38\lib\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "c:\program files\python38\lib\site-packages\youtube_dl\extractor\youtube.py", line 1827, in _real_extract
    raise ExtractorError(
youtube_dl.utils.ExtractorError: hypnodanceo: YouTube said: This video is unavailable.
Sorry about that.

Description

The extractor somehow modifies the last letter of any search keyword, thus leading to wrong search result. For example, in the verbose log, the input search keyword was "hypnodancer" but name in the error was "hypnodanceo". A possible fix is to add an empty space after the search keyword, I've tested it in Python and the search keyword remained unchanged.
image

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 14, 2020

You are trying to download video with id hypnodancer that does not exist.

@dstftw dstftw closed this Jun 14, 2020
@dstftw dstftw added the invalid label Jun 14, 2020
@SooOverpowered
Copy link
Author

@SooOverpowered SooOverpowered commented Jun 14, 2020

the thing is youtube-dl actually searched for hypnodanceo instead of hypnodancer, therefore returns the error

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 14, 2020

Again: you are trying to download https://www.youtube.com/watch?v=hypnodancer that is redirected to https://www.youtube.com/watch?v=hypnodanceo by Youtube.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.