ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.37k stars 9.95k forks source link

[YouTube] Unable to extract uploader id #31530

Open Shituation opened 1 year ago

Shituation commented 1 year ago

This issue is solved: read the Description below If you still want to comment after reading that, think again: first read this post below to avoid your comment being deleted or marked as spam.

Checklist

Verbose log

[YouTube] Unable to extract uploader id ``` yt-dlp.exe" -x -4 --download-archive "C:\Youtube-dlp\download_history.txt" --external-downloader aria2c --restrict-filenames --match-filter "description*='ESTRENO'" --audio-format mp3 -o "E:\FOLDER\RENAME\%%(title)s.%%(ext)s" "https://www.youtube.com/watch?v=lcusH7ksCNw&list=PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3&index=67" -v [debug] Command-line config: ['-x', '-4', '--download-archive', 'C:\\Youtube-dlp\\download_history.txt', '--external-downloader', 'aria2c', '--restrict-filenames', '--match-filter', "description*='ESTRENO'", '--audio-format', 'mp3', '-o', 'E:\\A.PROCESAR\\RENAME\\%%(title)s.%%(ext)s', 'https://www.youtube.com/watch?v=lcusH7ksCNw&list=PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3&index=67', '-v'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version 2023.01.06 [6becd25] (win_exe) [debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k 25 Mar 2021) [debug] exe versions: ffmpeg N-109541-g94aa70d757-20230109 (setts), ffprobe N-109541-g94aa70d757-20230109, phantomjs 2.1.1 [debug] Optional libraries: Cryptodome-3.16.0, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4 [debug] Proxy map: {} [debug] Loaded 1760 extractors [debug] Loading archive file 'C:\\Youtube-dlp\\ download_history.txt' [youtube:tab] Extracting URL: https://www.youtube.com/watch?v=lcusH7ksCNw&list=PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3&index=67 [youtube:tab] Downloading playlist PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3 - add --no-playlist to download just the video lcusH7ksCNw [youtube:tab] PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3: Downloading webpage [youtube:tab] Extracting URL: https://www.youtube.com/playlist?list=PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3 [youtube:tab] PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3: Downloading webpage [youtube:tab] PLuXU-g7mjkKPvWSFq7xI_N4Xj7A3iSOU3: Redownloading playlist API JSON with unavailable videos [download] Downloading playlist: LA VENGANZA SERÁ TERRIBLE (Programas) [youtube:tab] Playlist LA VENGANZA SERÁ TERRIBLE (Programas): Downloading 67 items of 67 [download] Downloading item 1 of 67 [youtube] Extracting URL: https://www.youtube.com/watch?v=3h5-QPbKoVg [youtube] 3h5-QPbKoVg: Downloading webpage [youtube] 3h5-QPbKoVg: Downloading android player API JSON [debug] Loading youtube-nsig.1cbba2b4 from cache WARNING: [youtube] 3h5-QPbKoVg: Native nsig extraction failed: Trying with PhantomJS n = GDZ_5inyZ3r6QSP ; player = https://www.youtube.com/s/player/1cbba2b4/player_ias.vflset/en_US/base.js [debug] [youtube] Signature function returned an exception; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U [youtube] 3h5-QPbKoVg: Executing signature code [debug] [youtube] PhantomJS command line: phantomjs "--ssl-protocol=any" "C:\Users\USER\AppData\Local\Temp\tmp88untizd" [debug] [youtube] Decrypted nsig GDZ_5inyZ3r6QSP => ECvndyupC0ex4A ERROR: [youtube] 3h5-QPbKoVg: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U File "yt_dlp\extractor\common.py", line 680, in extract File "yt_dlp\extractor\youtube.py", line 4049, in _real_extract File "yt_dlp\extractor\common.py", line 1228, in _search_regex ```

Description

[Revised by @dirkf] OP actually reported the bug for yt-dlp.

The problem, which was revealed by a change in the metadata served by YouTube, applied to both youtube-dl and yt-dlp and has been fixed in both programs.

There is a release of yt-dlp that includes the fix. See #31535 for discussion of whether this would be a good choice for you.

See below for ways to update to a fixed version of youtube-dl. Using -U doesn't (yet) work. A new release may be created, including the final fix, some time later than now. However, there is now a nightly build from the latest code here.

There's no point posting your log that shows the error now: feel free to thumb-up this post. Also, be aware that the initial patch still flagged the original issue as a WARNING; the fully fixed yt-dl doesn't. Consider raising a separate issue if your fixed yt-dl shows a different error.

dirkf commented 1 year ago

tldr; (and who can blame you?)

Updating with -U won't work until there is a new release. However, there is now a nightly build of youtube-dl in our repo here: https://github.com/ytdl-org/ytdl-nightly/releases. You can install this in the same ways as described in the manual, but change the URL for the download to match the appropriate one on the nightly release page. This is the way to go if you want a single file executable build, or if other methods don't succeed. See my post below for a script, or use a package like python-is-python3, or make a symbolic link, if your environment is POSIX-like and you don't have a Python called python.

If you installed with a package manager (apt, yum, brew, winget, etc), you may find that the maintainers of your package repository have updated the package from a fixed development version (but, eg, Ubuntu so far only has a PPA update; see below for brew). As suggested by @HinTak, you could also ask the packagers of yt-dl in your package or distro repository to update the package from the git master of this repo, though some prefer only release builds.

If you have a Python installation, use pip to install from the git master of this repo: https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1435477247.

If your yt-dl was installed with a package manager that needed admin, the command to update the module will need the same.

If you installed with brew, brew can now update you to a patched version that doesn't crash, but is not the latest git master. You can also try the --HEAD option to update to the latest master code, similar to the pip-based suggestions.

Or you can try using yt-dlp instead if your environment supports it: https://github.com/yt-dlp/yt-dlp.

Obviously, if you've tried to update in one of these ways and the original issue persists, the update didn't work: you are still running the release version or a development version that doesn't include the fix. Please check exactly how your yt-dl was installed and update accordingly. It may be easiest just to uninstall it and install the appropriate single file nightly build instead.

dirkf commented 1 year ago

@nachanon

... I explicitly said that I had to revert some non-related commit for current

Unless you have this problem with the nightly build as linked above, I suggest that you broke the build while making your changes. The CI tests pass for Python 2.7 as you can check. That's why I don't want to publicise your experience, especially as a simpler solution is on offer.

s1sw4nto commented 1 year ago

Traceback (most recent call last): File "/usr/bin/youtube-dl", line 9, in load_entry_point('youtube-dl==2021.12.17', 'console_scripts', 'youtube-dl')() File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point return ep.load() File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/lib/python2.6/site-packages/youtube_dl/init.py", line 15, in from .options import ( File "/usr/lib/python2.6/site-packages/youtube_dl/options.py", line 8, in from .downloader.external import list_external_downloaders File "/usr/lib/python2.6/site-packages/youtube_dl/downloader/init.py", line 23, in from .niconico import NiconicoDmcFD File "/usr/lib/python2.6/site-packages/youtube_dl/downloader/niconico.py", line 11, in from ..extractor.niconico import NiconicoIE File "/usr/lib/python2.6/site-packages/youtube_dl/extractor/init.py", line 9, in from .extractors import * File "/usr/lib/python2.6/site-packages/youtube_dl/extractor/extractors.py", line 43, in from .amara import AmaraIE File "/usr/lib/python2.6/site-packages/youtube_dl/extractor/amara.py", line 5, in from .youtube import YoutubeIE File "/usr/lib/python2.6/site-packages/youtube_dl/extractor/youtube.py", line 23, in from ..jsinterp import JSInterpreter File "/usr/lib/python2.6/site-packages/youtube_dl/jsinterp.py", line 265 counters = {k: 0 for k in _MATCHING_PARENS.values()} ^ SyntaxError: invalid syntax

udippel commented 1 year ago

If you have a Python installation, use pip to install from the git master of this repo: [#31530 (comment)

Fantastic. It SAYS : "Successfully installed youtube_dl-2021.12.17", but doesn't fail any longer.

[Edited to revert to my original comment]

Thanks a bunch for the help! It DOES work, though brings up the 'unable to extract uploader id' as a warning.

My deepest apologies for the editing mess!

LaTaupeEspagnole commented 1 year ago

Same here :

Verbose log

Python version 3.10.9 (CPython) - Linux-6.1.12-arch1-1-x86_64-with-glibc2.37 ``` $ youtube-dl --verbose https://www.youtube.com/watch?v=VfLAXJPz_q4 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=VfLAXJPz_q4'] [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.9 (CPython) - Linux-6.1.12-arch1-1-x86_64-with-glibc2.37 [debug] exe versions: ffmpeg 5.1.2, ffprobe 5.1.2 [debug] Proxy map: {} [youtube] VfLAXJPz_q4: 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 "/usr/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info ie_result = ie.extract(url) File "/usr/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 534, in extract ie_result = self._real_extract(url) File "/usr/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 "/usr/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. ``` ## Description Seems youtube-dl can not get the "uploader id" on the page https://www.youtube.com/watch?v=VfLAXJPz_q4. It is an open video playable on browser and published 5 years ago.
udippel commented 1 year ago

Same here :

Verbose log

Python version 3.10.9 (CPython) - Linux-6.1.12-arch1-1-x86_64-with-glibc2.37

Tried yours with the update of git master, and - just to confirm - worx. Python version 3.10.6 (CPython) - Linux-5.15.0-60-generic-x86_64-with-glibc2.35

arceon6 commented 1 year ago

Sorry for duplicate bug report. Still figuring this out. Ran sudo pip install --upgrade youtube_dl before youtube-dl errored out by the way.

J7a4s0m5ine commented 1 year ago

@dirkf I saw the issue was fixed in the sticky'ed issue but I'm still receiving it after cloning master branch fresh


python -m youtube_dl https://www.youtube.com/watch?v=zfDSFw9Z8YY --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=zfDSFw9Z8YY', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 57802e632
[debug] Python version 3.11.0 (CPython) - Windows-10-10.0.22621-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] zfDSFw9Z8YY: Downloading webpage
[debug] [youtube] Decrypted nsig jpLHvCV4oEPn6WAv => zW3bDPZy0gx9IQ
[debug] [youtube] Decrypted nsig 6cu9Yu6gfzGUa0Bh => l5uDoJfuDS4Vsw
WARNING: 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.
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://rr6---sn-8xgp1vo-cvne.googlevideo.com/videoplayback?expire=1676866981&ei=RaHyY5bfJaaG_9EPiv2LoAI&ip=71.184.108.240&id=o-AAxxR2DcgIPGK9iP8Orye_Q2apDyHFAbHY0zw-b3A4cL&itag=22&source=youtube&requiressl=yes&mh=Hw&mm=31%2C29&mn=sn-8xgp1vo-cvne%2Csn-ab5l6nrz&ms=au%2Crdu&mv=m&mvi=6&pl=16&initcwndbps=1656250&vprv=1&mime=video%2Fmp4&ns=h-uNwAsuZww1vNNlieoeNaAL&cnr=14&ratebypass=yes&dur=101.471&lmt=1658500346299020&mt=1676844543&fvip=5&fexp=24007246&c=WEB&txp=5318224&n=l5uDoJfuDS4Vsw&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgMJbguXII5fxomA_6Ie7V5yjWWNTIAuxly_-4hyOtsqMCIEAUe_ldpoO5h5KgLTMroqaYvaWNDH8QN0rctKs2mZki&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMaYTU8subwxTXphZEy6jaAA5aEawaXa1M0SJtazNmZ4AiAYgn6og52UjD9g7x5rLNIFCfnXoWE468PdxZh00UodOw%3D%3D'
[download] What Are Docker Extensions-zfDSFw9Z8YY.mp4 has already been downloaded
[download] 100% of 7.35MiB
'''
dirkf commented 1 year ago

I saw the issue was fixed in the sticky'ed issue but I'm still receiving it after cloning master branch fresh

That's a WARNING, not an ERROR, so it doesn't crash the program. The warning will go away once a full fix based on the analysis presented (way) above has been applied. The warning shows you that the value you might have expected to be extracted in the metadata is missing.

kof0012 commented 1 year ago

https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1433470254

thanks,i have fix it.

nicolaasjan commented 1 year ago

thanks,i have fix it.

Please note that this fix is "borrowed" from the fork project yt-dlp.

The fix here looks different.

rmottainfo commented 1 year ago

I have already performed tests with various URLs, carried out the upgrade, and finally, is the procedure of sending the log correct?

youtube-dl --verbose https://www.youtube.com/watch?v=kvher7AlvrY [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=kvher7AlvrY'] [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.9.2 (CPython) - Linux-5.10.0-19-amd64-x86_64-with-glibc2.31 [debug] exe versions: ffmpeg 4.3.5-0, ffprobe 4.3.5-0, rtmpdump 2.4 [debug] Proxy map: {} [youtube] kvher7AlvrY: 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 "/home/rodrigo/.local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper return func(self, *args, **kwargs) File "/home/rodrigo/.local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info ie_result = ie.extract(url) File "/home/rodrigo/.local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 534, in extract ie_result = self._real_extract(url) File "/home/rodrigo/.local/lib/python3.9/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 "/home/rodrigo/.local/lib/python3.9/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.

udippel commented 1 year ago

youtube-dl --verbose https://www.youtube.com/watch?v=kvher7AlvrY [debug] System config: []

I might become boring, though it works perfectly well (except of a warning) with the pip to install from the git master of this repo: [#31530 (comment)

In case you just want to GET the clip.

ash80 commented 1 year ago

On Windows

.\youtube-dl.exe https://www.youtube.com/watch?v=-qkjk6vgb6w --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=-qkjk6vgb6w', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.22621
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] -qkjk6vgb6w: Downloading webpage
[youtube] -qkjk6vgb6w: Downloading MPD manifest
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 "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1794, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1012, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id
whinee commented 1 year ago

On Linux:

Command:

"$HOME"'/whi_ne/2/home/pyenv/bin/python' -m youtube_dl --no-playlist --extract-audio --audio-format flac --audio-quality 0 -o '/home/whine/whi_ne/0/downloads/media/music/%(title)s.%(ext)s' -f bestaudio 'https://www.youtube.com/watch?v=GU4sm9lrZPw' --verbose

Output:


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--no-playlist', '--extract-audio', '--audio-format', 'flac', '--audio-quality', '0', '-o', '/home/whine/whi_ne/0/downloads/media/music/%(title)s.%(ext)s', '-f', 'bestaudio', 'https://www.youtube.com/watch?v=GU4sm9lrZPw', '--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.9 (CPython) - Linux-6.1.4-arch1-1-x86_64-with-glibc2.36
[debug] exe versions: ffmpeg 5.1.2, ffprobe 5.1.2
[debug] Proxy map: {}
[youtube] GU4sm9lrZPw: Downloading webpage
[youtube] Downloading just video GU4sm9lrZPw because of --no-playlist
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 "/home/whine/whi_ne/2/home/pyenv/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/home/whine/whi_ne/2/home/pyenv/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/home/whine/whi_ne/2/home/pyenv/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/home/whine/whi_ne/2/home/pyenv/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 "/home/whine/whi_ne/2/home/pyenv/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.```
FallenWolf69 commented 1 year ago

I've suddenly been receiving a similar output despite being on the latest version of Youtube-dl:

PS Z:\ytdl> youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=W4VTq0sa9yg [youtube] W4VTq0sa9yg: 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. PS Z:\ytdl> youtube-dl --version 2021.12.17 PS Z:\ytdl> youtube-dl -U youtube-dl is up-to-date (2021.12.17) PS Z:\ytdl>

ProgrammingLife commented 1 year ago

Already fixed in yt-dlp. yt-dlp/yt-dlp#6247 yt-dlp/yt-dlp@149eb0b

Thanks, works like a charm!

aabha3201 commented 1 year ago

Unable to extract uploader id

Pinho80 commented 1 year ago

I've following this error and how interested are the youtube-dl creators. My solution was to change my YT downloader app. You can browse for a Flatpak solution.

ReenigneArcher commented 1 year ago

A maintainer should probably lock this issue and limit it to contributors... nothing valuable is being added.

Vangelis66 commented 1 year ago

A maintainer should probably lock this issue and limit it to contributors

"The" (only one) current maintainer has his hands full with editing+closing the tens of duplicate issues people insist on submitting, showing complete disrespect to the procedure outlined in #30839 😡 (a PINNED issue no less in the tracker) ... Locking this issue, the first/original one, will cause, no doubt, further duplicates' explosion...

nothing valuable is being added.

I (probably) agree, but that's because most "people" don't take some seconds/a minute to browse already posted info/solutions inside this thread and simply want to add a me, too comment, to "get it out of their chests" or similar... And, of course, everybody wants the easiest solution ASAP, that will restore their downloading "needs" in mere seconds (hence most decide to migrate to downstream, because tagged releases and sought-for binaries are already available - but certain older environments are not compatible with downstream) ...

ReenigneArcher commented 1 year ago

Locking this issue, the first/original one, will cause, no doubt, further duplicates' explosion...

True, in that case I would then suggest disabling interactions from new GitHub users. image

Won't stop all of this, but should help.

Pinning this specific issue would probably help reduce the duplicates (a little).

Dec-35 commented 1 year ago

@dirkf

For those using the python Iibrary, You can install the master branch using: pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl I think it is simpler.

Indeed. What is the effect of #egg=youtube_dl?

See also https://adamj.eu/tech/2019/03/11/pip-install-from-a-git-repository/.

Okay, I might be dumb but I've run pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl (and python399 -m pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl btw since I have another python instance called python399) and that fixes nothing...

Python version 3.9.9 (CPython) - Windows-10-10.0.22621-SP0, release version ```console C:\Users\dec\Desktop\WhisperProject\whisperThings>youtube-dl https://youtube.com/watch?v=oQZcNGS7-pM [youtube] oQZcNGS7-pM: 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. C:\Users\dec\Desktop\WhisperProject\whisperThings>youtube-dl https://youtube.com/watch?v=oQZcNGS7-pM --verbose [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['https://youtube.com/watch?v=oQZcNGS7-pM', '--verbose'] [debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252 [debug] youtube-dl version 2021.12.17 [debug] Python version 3.9.9 (CPython) - Windows-10-10.0.22621-SP0 [debug] exe versions: ffmpeg N-109725-g2d202985b7-20230130, ffprobe N-109725-g2d202985b7-20230130 [debug] Proxy map: {} [youtube] oQZcNGS7-pM: 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 "C:\Users\dec\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper return func(self, *args, **kwargs) File "C:\Users\dec\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info ie_result = ie.extract(url) File "C:\Users\dec\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract ie_result = self._real_extract(url) File "C:\Users\dec\AppData\Local\Programs\Python\Python39\lib\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 "C:\Users\dec\AppData\Local\Programs\Python\Python39\lib\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. ```

Am I missing something?

zaphida commented 1 year ago

pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl I successfully updated youtube-dl using the above command to 2021.12.17 but I still get the same error as you @Dec-35, I don't think you're dumb:

Python version 3.10.6 (CPython) - Linux-5.15.0-60-generic-x86_64-with-glibc2.35, release version ```  kernel  ~  1  youtube-dl --verbose https://www.youtube.com/watch?v=CPY7VBYbDvw [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=CPY7VBYbDvw'] [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.6 (CPython) - Linux-5.15.0-60-generic-x86_64-with-glibc2.35 [debug] exe versions: ffmpeg 4.4.2, ffprobe 4.4.2, rtmpdump 2.4 [debug] Proxy map: {} [youtube] CPY7VBYbDvw: 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 "/home/kernel/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper return func(self, *args, **kwargs) File "/home/kernel/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info ie_result = ie.extract(url) File "/home/kernel/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract ie_result = self._real_extract(url) File "/home/kernel/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 "/home/kernel/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. ```
Vangelis66 commented 1 year ago

Am I missing something?

You're a Windows user, so the easiest solution for you is this one (a standalone x86 Windows binary).

If you insist on installing from git master (and having multiple Python environments might cause issues), then the git+https part implies you have installed git-for-windows and that git.exe has been added to your %PATH%...

You would then invoke yt-dl via your preferred python version like this:

python -m youtube_dl blahblahblah

Dec-35 commented 1 year ago

After downloading the latest youtube-dl.exe, placing it in my Programs folder and adding it to the PATH, I still get the same error:

C:\Users\dec\Desktop\WhisperProject\whisperThings>youtube-dl https://youtube.com/watch?v=oQZcNGS7-pM
[youtube] oQZcNGS7-pM: 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.

Also: [debug] youtube-dl version 2021.12.17 (is this normal? Aren't I supposed to get a newer version since I'm running a daily build?)

dirkf commented 1 year ago

Agreed. Also, remove or rename the old single file youtube-dl.exe to ensure that it isn't running when you invoke youtube-dl. With the patched nightly build you would presumably overwrite the old one anyway

The nightly build has an updated version date and a disclaimer like this

[debug] youtube-dl version 2023.02.21.1919
** This build is unofficial daily builds, provided for ease of use.
** Please do not ask for any support.

while a pip version updated from the repo can be identified by an additional line like this

[debug] Git HEAD: 1d3751c3f

@zaphida, seems like you haven't updated the yt-dl instance that you intended. How was yt-dl installed on your system?

Vangelis66 commented 1 year ago

After downloading the latest youtube-dl.exe

Where from?

Dec-35 commented 1 year ago

After downloading the latest youtube-dl.exe

Where from?

this link:

You're a Windows user, so the easiest solution for you is this one (a standalone x86 windows binary).

Dec-35 commented 1 year ago

I think I know what's happening: I originally installed youtube-dl with pip and that must still be the default. I'll try to remove the pip version and thus force it to use the new executable that is in the PATH

Vangelis66 commented 1 year ago

this link:

That binary reports here:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1253, fs mbcs, out cp737, pref cp1253
[debug] youtube-dl version 2023.02.21.1919
** This build is unofficial daily builds, provided for ease of use.
** Please do not ask for any support.
[debug] Python version 3.4.4 (CPython) - Windows-Vista-6.0.6003-SP2
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
zaphida commented 1 year ago

@zaphida, seems like you haven't updated the yt-dl instance that you intended. How was yt-dl installed on your system?

Using apt. 2021.12.17 is the version that pip grabbed from the git repository and built:  kernel  ~  pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl Defaulting to user installation because normal site-packages is not writeable Collecting youtube_dl Cloning https://github.com/ytdl-org/youtube-dl.git (to revision master) to /tmp/pip-install-_otuq9fs/youtube-dl_8d519f6d33994564a562163328603a85 Running command git clone --filter=blob:none --quiet https://github.com/ytdl-org/youtube-dl.git /tmp/pip-install-_otuq9fs/youtube-dl_8d519f6d33994564a562163328603a85 Resolved https://github.com/ytdl-org/youtube-dl.git to commit 6067451e432fb65d487a8a67bb5cff52efb9ccf4 Preparing metadata (setup.py) ... done Building wheels for collected packages: youtube_dl Building wheel for youtube_dl (setup.py) ... done Created wheel for youtube_dl: filename=youtube_dl-2021.12.17-py2.py3-none-any.whl size=1918029 sha256=7a858a8eae1ad7623f9b1a5cde75e36eecaf8e0b6b948824c58b4e669c8e9fc4 Stored in directory: /tmp/pip-ephem-wheel-cache-59aqyrhf/wheels/b8/03/62/9c414b89a26da510b0a6d984b0ba74200d591e3d0abfa72aa8 Successfully built youtube_dl Installing collected packages: youtube_dl Successfully installed youtube_dl-2021.12.17

Vangelis66 commented 1 year ago

The updated version can be identified by an additional line like this

[debug] Git HEAD: 1d3751c3f

... This isn't available in the standalone Windows executable (see above); if you were referring to a different way of a yt-dl installation, then please disregard 😉 ...

Edit: The comment I quoted from has been now edited to reflect it referenced a pip "type" of installation 😜 ...

Dec-35 commented 1 year ago

Okay. Fixed. Recap:

I had previously installed youtube-dl with pip. I then downloaded the daily executable, put it inside a folder which I coppied the path of and added it to the PATH After running pip uninstall youtube-dl -y and a quick terminal restart, everything is back in order.

dirkf commented 1 year ago

@zaphida, the pip update isn't the version that's running in your log (no Git HEAD). You probably need to run the pip command with sudo to modify the version installed by apt; also use python3.10 -m pip in case pip is linked to some other Python.

And of course xkcd.

bluevalien commented 1 year ago

if it helps, I installed installed various versions of youtube-dl to find out where it "broke" youtube-dl-2021.1.24.1 works and youtube-dl-2021.2.4 gives the error Unable to extract uploader id. * edit was here

(venv) PS C:\Users\Oliver\Desktop\image_test> pip freeze  
numpy==1.24.2
opencv-python==4.7.0.68
pafy==0.5.5
youtube-dl==2021.2.4

all tests were run in python using some basic code in a venv

import cv2
import pafy
video = pafy.new('https://www.youtube.com/watch?v=CNxO7VN-xos')
best = video.getbest(preftype="mp4")
cap = cv2.VideoCapture(best.url)
while(cap.isOpened()):
    ret, frame = cap.read()
    if ret:
        cv2.imshow('frame', frame)
        if cv2.waitKey(1) & 0xFF == ord('q'):
            exit()
    else:
        break
cap.release()
cv2.destroyAllWindows()

I'm using python -m pip install youtube-dl==2021.1.24.1 as a work-around for now.

zaphida commented 1 year ago

@dirkf thanks, I removed the version installed by apt and reinstalled with python3.10 -m pip install youtube-dl Running pip install with sudo gives a scary looking warning: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv I'd rather not tread into that territory.

I still see no Git HEAD in the log, and I still get the unable to extract uploader id warning, but the video gets downloaded.

 kernel  ~  1  youtube-dl --verbose https://www.youtube.com/watch?v=CPY7VBYbDvw
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=CPY7VBYbDvw']
[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.6 (CPython) - Linux-5.15.0-60-generic-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 4.4.2, ffprobe 4.4.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CPY7VBYbDvw: Downloading webpage
[debug] [youtube] Decrypted nsig MaaeVatB_iGvcewd => hlOkb5wMix3uQA
[debug] [youtube] Decrypted nsig zKH-pM_5smCGp0u_ => DS7ctJXPmGldaA
WARNING: 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.
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://rr2---sn-u2bpouxgoxu-hxay.googlevideo.com/videoplayback?expire=1677056295&ei=x4T1Y4TVEfHRjuMPkaOYkAU&ip=194.223.40.36&id=o-AG1emD7l-ZRQXZTsiZSKA0ZTKdpLc7bv1LuIDYTeFdhu&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=youtube&requiressl=yes&mh=ab&mm=31%2C29&mn=sn-u2bpouxgoxu-hxay%2Csn-hxa7zn7z&ms=au%2Crdu&mv=m&mvi=2&pl=21&initcwndbps=1710000&vprv=1&mime=video%2Fmp4&ns=Z76e2lqeeBOFonvhDtdTzTAL&gir=yes&clen=19850442&dur=1018.217&lmt=1446946687475273&mt=1677034412&fvip=2&keepalive=yes&fexp=24007246&beids=24472449&c=WEB&n=hlOkb5wMix3uQA&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgDMAYEefiTn3hA6cOYVvUqmfaPfEqv7EU9KzKy5TL_y0CIQCPyVMAYSVQiNPKwmGXHaE2c5AkYbeQCzL4BKvstsvFHA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgdWgPiB93grHG6kDe1VAWLiEPz1R5t3H46Ql9g_xbMr4CIBIoQ1S3xN2WDr9n57csAVZwzVk6mcUnXgfQvzorB3IM'
[download] Destination: Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f135.mp4
[download] 100% of 18.93MiB in 00:05
[debug] Invoking downloader on 'https://rr2---sn-u2bpouxgoxu-hxay.googlevideo.com/videoplayback?expire=1677056295&ei=x4T1Y4TVEfHRjuMPkaOYkAU&ip=194.223.40.36&id=o-AG1emD7l-ZRQXZTsiZSKA0ZTKdpLc7bv1LuIDYTeFdhu&itag=251&source=youtube&requiressl=yes&mh=ab&mm=31%2C29&mn=sn-u2bpouxgoxu-hxay%2Csn-hxa7zn7z&ms=au%2Crdu&mv=m&mvi=2&pl=21&initcwndbps=1710000&vprv=1&mime=audio%2Fwebm&ns=Z76e2lqeeBOFonvhDtdTzTAL&gir=yes&clen=16190889&dur=1018.221&lmt=1446947467216128&mt=1677034412&fvip=2&keepalive=yes&fexp=24007246&beids=24472449&c=WEB&n=hlOkb5wMix3uQA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgTLVdTFroAWj46UjND2KjKq_H9ECYikBCdKpRORryIzICIQDmkDVEe5REixyg99IwL7xdUdDb9QCCENS039FqGqEhqA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgdWgPiB93grHG6kDe1VAWLiEPz1R5t3H46Ql9g_xbMr4CIBIoQ1S3xN2WDr9n57csAVZwzVk6mcUnXgfQvzorB3IM'
[download] Destination: Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f251.webm
[download] 100% of 15.44MiB in 00:02
[ffmpeg] Merging formats into "Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f135.mp4' -i 'file:Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.temp.mkv'
Deleting original file Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f135.mp4 (pass -k to keep)
Deleting original file Doom II OST (SC55) - Intermission Music (Extended)-CPY7VBYbDvw.f251.webm (pass -k to keep)
dirkf commented 1 year ago

@zaphida, clearly that worked, then.

dirkf commented 1 year ago

I'm using python -m pip install youtube-dl==2021.1.24.1 as a work-around for now.

Why not follow one of the solutions presented here instead of installing an old version that will fail differently?

Anduin2017 commented 1 year ago

Since we have a solution, please release a new production version with fix so we just download the latest production version and can use it well.

thlor commented 1 year ago

Since we have a solution, please release a new production version with fix so we just download the latest production version and can use it well.

Could be a hotfix of the latest (2021.12.17) release, so nothing would get released which has been implemented since but is not ready for release yet. Making the -U flag work would help a lot of people and put an end of the duplicate issue reports.

infinitejesp commented 1 year ago

I'm too basic of a user to implement any of the workarounds illustrated above really. Will eagerly await a new release.

ghost commented 1 year ago
youtube-dl 'https://www.youtube.com/watch?v=wx8nmd0oiGY' --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=wx8nmd0oiGY', '--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.12.0a3+ (CPython) - Linux-6.0.0-kali6-amd64-x86_64-with-glibc2.36
[debug] exe versions: ffmpeg 5.1.2-2, ffprobe 5.1.2-2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] wx8nmd0oiGY: 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 "/usr/local/lib/python3.12/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
                ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/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 "/usr/local/lib/python3.12/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.
s3n0 commented 1 year ago

Hi.

Has the latest build (exe-binary) with a fix for Windows systems not yet been compiled and released ?

I downloaded the latest youtube-dl.exe (2021.12.17.0) but the problem persists. URL download source: https://yt-dl.org/downloads/2021.12.17/youtube-dl.exe

Exactly as @dmelladoc last wrote: https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1433230848

Youtube URL to download: https://www.youtube.com/watch?v=yw_ShLNyHTk
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--output', 'Y:\\%(title)s.%(ext)s', '-f', 'bestaudio/best', '--audio-quality', '0', '--cookies', 'youtube_age_cookies.txt', '--embed-thumbnail', '--extract-audio', '--audio-format', 'mp3', 'https://www.youtube.com/watch?v=yw_ShLNyHTk']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg n4.3.2-161-g4383b9e8a3, ffprobe n4.3.2-161-g4383b9e8a3
[debug] Proxy map: {}
[youtube] yw_ShLNyHTk: 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 "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1794, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1012, in _search_regex
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.
tranzmatt commented 1 year ago

This crashed it for me:

owner_profile_url: http://www.youtube.com/@DarbySpiegel1027

dirkf commented 1 year ago

This crashed it for me: owner_profile_url: http://www.youtube.com/@DarbySpiegel1027

Current test version (private) on a video from that channel:

$ python3.9 -m youtube_dl -v --get-filename -o '%(uploader_id)s' 'EBLvMHBBqAc'
[debug] System config: ['--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--get-filename', '-o', '%(uploader_id)s', 'EBLvMHBBqAc']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 1d3751c3f
[debug] Python version 3.9.16 (CPython) - Linux-4.4.0-210-generic-i686-with-glibc2.23
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
@DarbySpiegel1027
$
szekster commented 1 year ago

Latest youtube-dl downloaded, but after the update I am still getting the error:

[youtube] eFwcBVGLQM0: Downloading webpage ERROR: Unable to extract uploader id;

still reporting same version, not sure if this was changed in the patch. youtube-dl --version 2021.12.17

Running on Oracle Linux 8. Originally installed youtube-dl with commands: sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl

actually just checked and https://yt-dl.org/downloads/latest/youtube-dl still appears to be the old version. guess I can try with pip.

Takage commented 1 year ago

Okay. Fixed. Recap:

I had previously installed youtube-dl with pip. I then downloaded the daily executable, put it inside a folder which I coppied the path of and added it to the PATH After running pip uninstall youtube-dl -y and a quick terminal restart, everything is back in order.

I am on a Mac. The fix did not work for me still the same error: ERROR: Unable to extract uploader id;

dirkf commented 1 year ago

If you see ERROR: Unable to extract uploader id;, you are still running the release version or a development version that doesn't include the fix. Please check exactly how your yt-dl was installed and update accordingly. It may be easiest just to uninstall it and install the appropriate single file nightly build instead. Updating with -U won't work until there is a new release.

ci-bo commented 1 year ago

It would be easiest if the -U flag worked instead of failing and recommending the user submit a bug report.