💾 Archived View for my-adventures.at › opensource › howto › fix_yt_dl.gmi captured on 2023-12-28 at 15:37:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-07-10)
-=-=-=-=-=-=-
░░░█▄█░█░█ ░░░█░█░░█░ ░░░▀░▀░░▀░ ░█▀█░█▀▄░█░█░█▀▀░█▀█░▀█▀░█░█░█▀▄░█▀▀░█▀▀ ░█▀█░█░█░▀▄▀░█▀▀░█░█░░█░░█░█░█▀▄░█▀▀░▀▀█ ░▀░▀░▀▀░░░▀░░▀▀▀░▀░▀░░▀░░▀▀▀░▀░▀░▀▀▀░▀▀▀ ░░░░░░░░░░░░░░░░░░░░░█▀█░▀█▀ ░░░░░░░░░░░░░░░░░░░░░█▀█░░█░ ░░░░░░░░░░░░░░░░░░░░░▀░▀░░▀░
25/06/2023
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.
Run youtube-dl with the
--verbose
flag. You should get an output looking something like this:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 814, in wrapper
return func(self, *args, **kwargs)
File "/usr/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 835, 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.
Find the line ending in "youtube.py".
Use your favourite text editor (vim) and comment out the line referenced (i.e. line 1794).
sudo vim /usr/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py
# [corresponding line]
:wq [to exit]
youtube-dl should work again now.
▓█████ ███▄ █ ▓█████▄ ▒█████ █████▒ ██▓███ ▄▄▄ ▄████ ▓█████ ▓█ ▀ ██ ▀█ █ ▒██▀ ██▌ ▒██▒ ██▒▓██ ▒ ▓██░ ██▒▒████▄ ██▒ ▀█▒▓█ ▀ ▒███ ▓██ ▀█ ██▒░██ █▌ ▒██░ ██▒▒████ ░ ▓██░ ██▓▒▒██ ▀█▄ ▒██░▄▄▄░▒███ ▒▓█ ▄ ▓██▒ ▐▌██▒░▓█▄ ▌ ▒██ ██░░▓█▒ ░ ▒██▄█▓▒ ▒░██▄▄▄▄██ ░▓█ ██▓▒▓█ ▄ ░▒████▒▒██░ ▓██░░▒████▓ ░ ████▓▒░░▒█░ ▒██▒ ░ ░ ▓█ ▓██▒░▒▓███▀▒░▒████▒ ░░ ▒░ ░░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ▒ ░ ▒▓▒░ ░ ░ ▒▒ ▓▒█░ ░▒ ▒ ░░ ▒░ ░ ░ ░ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░ ░▒ ░ ▒ ▒▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░