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

ERROR: Unable to extract uploader id #32668

Closed
6 tasks done
durack1 opened this issue Dec 19, 2023 · 3 comments
Closed
6 tasks done

ERROR: Unable to extract uploader id #32668

durack1 opened this issue Dec 19, 2023 · 3 comments

Comments

@durack1
Copy link

durack1 commented Dec 19, 2023

Checklist

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

bash-3.2$ youtube-dl https://www.youtube.com/watch?v=otNh9bTjXWg --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=otNh9bTjXWg', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.10 (CPython) - macOS-14.1.2-arm64-arm-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] otNh9bTjXWg: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1794, in _real_extract
    'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I seem to be hitting this "ERROR: Unable to extract uploader id;" no matter what site I am hitting. This appears to be a particular problem with youtube. I have tried numerous wrap the URL techniques, none of which appear to solve the issue

@durack1
Copy link
Author

durack1 commented Dec 19, 2023

Potential duplicate of #31530

@durack1
Copy link
Author

durack1 commented Dec 19, 2023

This does not appear to be solved in the latest nightly build (as recommended in #31530):

(base) paully@airy2 ~ % youtube-dl https://www.youtube.com/watch?v=lFEolmXl_4E
zsh: no matches found: https://www.youtube.com/watch?v=lFEolmXl_4E
(base) paully@airy2 ~ % youtube-dl '{https://www.youtube.com/watch?v=lFEolmXl_4E}'
ERROR: '{https://www.youtube.com/watch?v=lFEolmXl_4E}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{https://www.youtube.com/watch?v=lFEolmXl_4E}" ) to search YouTube
(base) paully@airy2 ~ % youtube-dl '{https://www.youtube.com/watch?v=lFEolmXl_4E}' --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['{https://www.youtube.com/watch?v=lFEolmXl_4E}', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2023.12.07 [be008e657] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.10.10 (CPython arm64 64bit) - macOS-14.1.2-arm64-arm-64bit - OpenSSL 3.1.0 14 Mar 2023
[debug] exe versions: none
[debug] Proxy map: {}
ERROR: '{https://www.youtube.com/watch?v=lFEolmXl_4E}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{https://www.youtube.com/watch?v=lFEolmXl_4E}" ) to search YouTube
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 863, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 959, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 565, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2555, in _real_extract
    raise ExtractorError(
youtube_dl.utils.ExtractorError: '{https://www.youtube.com/watch?v=lFEolmXl_4E}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{https://www.youtube.com/watch?v=lFEolmXl_4E}" ) to search YouTube

@dirkf
Copy link
Contributor

dirkf commented Dec 19, 2023

Read and follow #30839 as asked (in particular this issue is listed there).

Don't blindly check the items:

[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

The problem above

youtube_dl.utils.ExtractorError: '{https://www.youtube.com/watch?v=lFEolmXl_4E}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{https://www.youtube.com/watch?v=lFEolmXl_4E}" ) to search YouTube

is clearly not the same issue as OP's and results from not quoting the URL. macOS uses the zsh shell by default, where ? is a special character:

zsh: no matches found: https://www.youtube.com/watch?v=lFEolmXl_4E

Always quote the URL, 'Unix-like shells' or "Windows cmd".

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants