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
[Youtube] Unable to extract uploader id
#6247
Comments
|
Having this same issue since early this morning (started at around 6AM) and judging by your username, I assume you're in Brazil? If yes what's your ISP? I am on a fiber connection by VIVO. A/B javascript testing perhaps? Videos works via proxies in the US and DE. Edit: I have the dumps generated by |
|
I have the same issue (germany,1&1 ISP), so it's likely not a issue limited to one location |
|
Here, me too. |
@garoto If you're on windows, could you open the file in a text/code editor and ctrl+F for or if on GNU/linux, you could just run this and copy/paste the output |
|
This bit?
|
|
The dump I've made via a US proxy has this for its value:
|
|
Having the same issue here, also Brazil. The issue started around 7 AM (GMT-3), all my auto-download scripts stopped working at that time. Seems to be related to how channels now use a "@customchannelname" instead of the old "/channel/channel_ID" Tried it with over 100 different videos, none of them download, so it's not specific to any channel or video. |
Yep that's the one, thanks. I had a feeling the new I think this should fix the issue diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 95ca52b3a..4dde4bbaa 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -4120,7 +4120,7 @@ def is_bad_format(fmt):
'thumbnail': traverse_obj(original_thumbnails, (-1, 'url')),
'description': video_description,
'uploader': get_first(video_details, 'author'),
- 'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
+ 'uploader_id': self._search_regex(r'/(?:channel/|user/|(?=@))([^/?&#]+)', owner_profile_url, 'uploader id', default=None),
'uploader_url': owner_profile_url,
'channel_id': channel_id,
'channel_url': format_field(channel_id, None, 'https://www.youtube.com/channel/%s'),EDIT: updated regex so that |
Yes it does! |
|
grep -Po 'ownerProfileUrl":"\K([^"]*)"' 'aqz-KE-bpKQ_https_-_www.youtube.com_watchv=aqz-KE-bpKQ_bpctr=9999999999_has_verified=1.dump'
http://www.youtube.com/user/BlenderFoundation"However [debug] Command-line config: ['-vU', '--write-pages', 'https://www.youtube.com/watch?v=LqYBa1xCLRM']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.01.06 [6becd2508]
[debug] Lazy loading extractors is disabled
[debug] Python 3.11.1 (CPython x86_64 64bit) - Linux-6.1.11-200.fc37.x86_64-x86_64-with-glibc2.36 (OpenSSL 3.0.8 7 Feb 2023, glibc 2.36)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2
[debug] Optional libraries: Cryptodome-3.17.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1760 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2023.01.06, Current version: 2023.01.06
yt-dlp is up to date (2023.01.06)
[youtube] Extracting URL: https://www.youtube.com/watch?v=LqYBa1xCLRM
[youtube] LqYBa1xCLRM: Downloading webpage
[youtube] Saving request to LqYBa1xCLRM_https_-_www.youtube.com_watchv=LqYBa1xCLRM_bpctr=9999999999_has_verified=1.dump
[youtube] LqYBa1xCLRM: Downloading android player API JSON
[youtube] Saving request to LqYBa1xCLRM_https_-_www.youtube.com_youtubei_v1_playerkey=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w_prettyPrint=false.dump
[debug] Loading youtube-nsig.1cbba2b4 from cache
WARNING: [youtube] LqYBa1xCLRM: nsig extraction failed: You may experience throttling for some formats
Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
n = 8IY4WqK_fBKTDUL ; 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
ERROR: [youtube] LqYBa1xCLRM: 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 "/usr/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 680, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/yt_dlp/extractor/youtube.py", line 4049, 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.11/site-packages/yt_dlp/extractor/common.py", line 1228, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
grep -Po 'ownerProfileUrl":"\K([^"]*)"' LqYBa1xCLRM_https_-_www.youtube.com_watchv\=LqYBa1xCLRM_bpctr\=9999999999_has_verified\=1.dump
http://www.youtube.com/@orthosporteschweiler3469" |
|
The patch seems to work. 🏆 |
|
same here, thank you :) |
|
Patch works on my side too, thank you so much. This should be accepted ASAP. |
It does not work for me. |
|
Good morning! Similar problem in Termux, Android. |
|
|
Still getting the error. Let's wait for the next release. |
|
Yeah me to |
|
+1 looking forward to a new release, since it's already fixed |
|
Cite from their Discord-channel, 9:11 AM: Stickied Message: Unable to extract uploader id on Youtube has already been fixed and a new release will be made in a few hours. |
|
Can confirm bashonly's patch works. I previously could not download this video (https://www.youtube.com/watch?v=lIMX5opqRkU) even with latest updates. After downloading bashonly's patch everything worked fine. |
|
How do I apply this patch on windows? |
|
I successfully installed version from master branch, but I would like to revert to stable. EDIT:
|
|
Solved! :) |
|
Well, particially. The fix is not in the latest official release yet. |
wait a little while for the next update, or use https://github.com/ytdl-patched/yt-dlp/releases/latest (or https://github.com/yt-dlp/yt-dlp/wiki/Installation#:~:text=master%20branch if you have pip installed) |
|
The Windows release on https://github.com/ytdl-patched/yt-dlp/releases/latest triggers Chrome's security safety, is there any known reason for that ? |
Unable to extract uploader id
|
Great work! I can imagine it's very stressful having something break and users pile in with the same issue repeatedly. Bravo to a well-functioning team! 👏 |
|
Next time something like this happens, I'll probably lock the repo using GH moderation tools. It's not something I want to do, but dealing with so many duplicates is such a pain |
this also fixes legacy |
After doing this yesterday, every time I run yt-dlp I get a dozen warning messages of the form |
|
Open new issue for unrelated problems |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
This error started appearing to me yesterday and almost every video gave this error, but I could download the video after about 3 attempts. But today, all youtube videos are giving this error no matter how many times I try to download it. Can anyone help me?
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>)[debug] Command-line config) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: