YouTube-DL uploaded id error

Is youtube-DL no longer viable on Dietpi?

All attempts return: ERROR: Unable to extract uploader id

It seems that updates should resolve this problem?

This maybe the issue but a bit above me:

Where do you see that information/error? Can you be more specific on this!

Command I used on to run and verbose output.

Youtube-dl --verbose https://www.youtube.com/playlist?list=PLylR0r5XbfNEZmy5eE00lAVW-vOzHMIm3
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/playlist?list=PLylR0r5XbfNEZmy5eE00lAVW-vOzHMIm3']
[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-6.1.21-v8+-aarch64-with-glibc2.31
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:tab] PLylR0r5XbfNEZmy5eE00lAVW-vOzHMIm3: Downloading webpage
[download] Downloading playlist: LCK
[youtube:tab] playlist LCK: Downloading 7 videos
[download] Downloading video 1 of 7
[youtube] aqCysLiEvu0: 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 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/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 "/usr/local/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.

Too old version from repository. Uninstall and install again through dietpi-software.

Done, same result. Any other options?

Can you share some more details on your system

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SDcard used | (EG: SanDisk ultra)

There is a fix in commit.

1 Like
  • DietPi version |
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=17
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=ā€˜masterā€™
    G_GITOWNER=ā€˜MichaIngā€™

  • Distro version | bullseye 0

  • Kernel version | SkidsRoad 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | arm64

  • SBC model | RPI 4 Model B (aarch64)

  • Power supply used | Not Local to me, so canā€™t confirm

  • SDcard used | Not Local to me so can not confirm

thx for sharing. Too bad they donā€™t publish new executable. In this case, the fix/commit would need to be added manually.

Here are some solutions from youtube-dl dev.

Will any of these solution provide a path forward on dietpi?

if you have installed through dietpi-software, you can ā€œupdateā€ with these commands one by one

sudo wget https://github.com/ytdl-patched/youtube-dl/releases/latest/download/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod +x /usr/local/bin/youtube-dl
sudo sed -i '1s/python$/python3/' /usr/local/bin/youtube-dl

@MichaIng what do you think? Should we switch to this fork for time being until original YT-DL has been updated and released a newer version?

I do not know the overhead to switch but the chatter seems that it may be a long time to upgrade.

Appreciate all your work and efforts!

technically it should not be that difficult. Just something we need to decide on :slight_smile:

thx @pulpe for creating Update youtube-dl install url to nightly build fork by pulpe Ā· Pull Request #6374 Ā· MichaIng/DietPi Ā· GitHub