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

After update, unable to extract. RegexNotFoundError on uploader id. OSX Homebrew #32447

Closed
dvodvo opened this issue Jul 18, 2023 · 5 comments
Closed

Comments

@dvodvo
Copy link

dvodvo commented Jul 18, 2023

Checklist

ran

brew upgrade youtube-dl
youtube-dl --version
2021.12.17

  • [ X] I've verified that I'm running youtube-dl version 2021.12.17
  • [ X] I've checked that all provided URLs are alive and playable in a browser
  • [ X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ X] I've searched the bugtracker for similar bug reports including closed ones
  • [ X] I've read bugs section in FAQ

There is a similar issue, but the discussion that follows relates to ITV urls

Verbose log

The address is taken from the control-click menu item choices of the available web page.

youtube-dl https://youtu.be/kemukciHN8M --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://youtu.be/kemukciHN8M', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 2b4cfb033
[debug] Python version 3.10.10 (CPython) - macOS-12.3-arm64-arm-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] kemukciHN8M: Downloading webpage
[youtube] kemukciHN8M: Downloading player 30857836
ERROR: Unable to extract uploader id; 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 "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/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 "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/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; 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.

The HTML video tag has:
<video tabindex="-1" class="video-stream html5-main-video" webkit-playsinline="" playsinline="" controlslist="nodownload" style="width: 1090px; height: 354px; left: 0px; top: 0px;" src="blob:https://www.youtube-nocookie.com/75346055-471a-498b-b269-8567239ef6e4"></video>,
but is of no immediate use(to this user at least)

Description

the requested URL does not initiate the download. other attempts with alternative utube domains (seen in the past) have failed (not even finding the file).

The error implies the file exists, but - almost immediately after seeing Downloading webpage hits the error. Thus potentially an issue with the name of the file

@dvodvo dvodvo changed the title After update, unable to extract. RegexNotFoundError After update, unable to extract. RegexNotFoundError on uploader id Jul 18, 2023
@jeremy-morren

This comment was marked as duplicate.

@dirkf
Copy link
Contributor

dirkf commented Jul 18, 2023

Your error is Unable to extract uploader id with YouTube. Read #30839 again (?) for the resolution.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
@dvodvo
Copy link
Author

dvodvo commented Jul 18, 2023

The downloading was executed after uninstalling and re-installing youtube-dl. (via homebrew on MAC OSX)

brew uninstall youtube-dl
brew install youtube-dl

May I suggest that the error message be adapted.
The notion of update, or as brew required upgrade, is misleading.
A fresh install was required.

@dvodvo dvodvo changed the title After update, unable to extract. RegexNotFoundError on uploader id After update, unable to extract. RegexNotFoundError on uploader id. OSX Homebrew Jul 18, 2023
@dvodvo
Copy link
Author

dvodvo commented Jul 18, 2023

for this reader the matter is closed. Hopefully it can be of use to others.

@dirkf
Copy link
Contributor

dirkf commented Jul 18, 2023

From the master issue:

brew install --head ...

The patched version from the brewery is out of date.

See also PR #32445.

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

3 participants