youtube-dl: ERROR: Unable to extract uploader id

youtube-dl 'https://www.youtube.com/watch?v=YopE2S3TodY'
[youtube] YopE2S3TodY: 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; 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.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 15 (2 by maintainers)

Most upvoted comments

My solution:

  • Pull the latest code
  • cd ~/youtube-dl
  • change version.py like this
    • version = ‘2023.02.19.local’
  • change cache.py
    • _DEFAULT_VERSION = ‘2023.02.19.local’
  • python setup.py build
  • python setup.py install
  • run youtbe-dl

Y’all, go /youtube_dl/extractor/common.py. Line 983, change: fatal=True to fatal=False

I noticed with this upgrade, the speed limit was lifted. The previous version was only 40kb/s.(2021.12.17 tags) Is there any risk that google will block my ip and not let me download it ?

[DEBUG] 2023-02-19 18:09:44,921 [download]  16.5% of 129.30MiB at  2.68MiB/s ETA 00:40
[DEBUG] 2023-02-19 18:09:45,031 [download]  28.9% of 19.59GiB at  2.62MiB/s ETA 01:30:42
[DEBUG] 2023-02-19 18:09:45,140 [download]  40.0% of 338.87MiB at  1.44MiB/s ETA 02:21
[DEBUG] 2023-02-19 18:09:45,517 [download]  98.7% of 346.94MiB at  1.33MiB/s ETA 00:03
[DEBUG] 2023-02-19 18:09:45,620 [download]  19.2% of 129.30MiB at  2.18MiB/s ETA 00:48
[DEBUG] 2023-02-19 18:09:45,821 [download]   1.0% of 76.04MiB at 290.13KiB/s ETA 04:25
[DEBUG] 2023-02-19 18:09:46,009 [download]  40.3% of 338.87MiB at  1.43MiB/s ETA 02:21
[DEBUG] 2023-02-19 18:09:46,300 [download]   1.6% of 76.04MiB at 293.48KiB/s ETA 04:20
[DEBUG] 2023-02-19 18:09:46,388 [download]  29.0% of 19.59GiB at  2.70MiB/s ETA 01:27

sed 's/solution/workaround/g'

That said, the discussion should continue on https://github.com/ytdl-org/youtube-dl/issues/31530

Is there any risk that google will block my ip and not let me download it ?

Apparently not yet.

duplicate of #31530

I get the same issue on Mac. The homebrew version seems to be old though…

$youtube-dl --verbose https://www.youtube.com/watch\?v\=9cL7HVU-uU4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=9cL7HVU-uU4']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 17c872fb5
[debug] Python version 3.11.2 (CPython) - macOS-13.2.1-arm64-arm-64bit
[debug] exe versions: ffmpeg 5.1.2, ffprobe 5.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 9cL7HVU-uU4: 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; 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.11/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.11/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.11/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.11/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.11/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.
$brew info youtube-dl
==> youtube-dl: stable 2021.12.17 (bottled)
Download YouTube videos from the command-line
https://youtube-dl.org/
/opt/homebrew/Cellar/youtube-dl/2021.12.17 (2,411 files, 22.7MB) *
  Poured from bottle on 2022-11-28 at 21:20:32
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/youtube-dl.rb
License: Unlicense
==> Dependencies
Required: python@3.11 ✔
==> Analytics
install: 12,154 (30 days), 34,632 (90 days), 171,703 (365 days)
install-on-request: 12,045 (30 days), 34,315 (90 days), 169,494 (365 days)
build-error: 2 (30 days)

OK, related to https://github.com/ytdl-org/youtube-dl/issues/31530