Youtube-dl / yt-dlp not working

Have you seen and tried @banjo’s (probable) answer?

You can edit your stable-branch version. source (…works fine)

In the file /usr/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py change the following line (line 4049) (or comment it out by adding an octothorpe # in front of it):

'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,

to this

'uploader_id': self._search_regex(r'/(?:channel/|user/|@)([^/?&#]+)', owner_profile_url, 'uploader id', default=None),

From

Because from what I see quickly, it is the same error. But I’m no expert, so might be wrong.

1 Like