Skip to content
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

yt-dlp problem from yewtube player #1225

Closed
tom-i opened this issue Mar 31, 2023 · 2 comments
Closed

yt-dlp problem from yewtube player #1225

tom-i opened this issue Mar 31, 2023 · 2 comments

Comments

@tom-i
Copy link

tom-i commented Mar 31, 2023

yewtube has some weird error when I wanted to play some YTB content.
Also "Stremed" content is not playable.

Issue / Suggestion

Steps to repro:

  1. Run yt
  2. Search /abgt 519
  3. try to run some "Streamed" music
Exception in thread Thread-2 (_preload):
Traceback (most recent call last):
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 666, in extract
    ie_result = self._real_extract(url)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 3605, in _real_extract
    'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1218, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: 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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1441, in wrapper
    return func(self, *args, **kwargs)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1517, in __extract_info
    ie_result = ie.extract(url)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 692, in extract
    raise type(e)(e.orig_msg, **kwargs)
yt_dlp.utils.RegexNotFoundError: [youtube] v7HDJjv2KZA: 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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/streams.py", line 189, in _preload
    streamlist = get(song)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/streams.py", line 54, in get
    ps = pafy.get_video_streams(ytid)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/pafy.py", line 43, in get_video_streams
    info_dict = ydl.extract_info(ytid, download=False)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1432, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1459, in wrapper
    self.report_error(str(e), e.format_traceback())
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 978, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/home/tomasi/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 921, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] v7HDJjv2KZA: Unable to extract uploader id

Your Environment

Installed yewtube version:

└─(12:01:53)──> yt --version
yewtube version    : 2.10.2
yt_dlp version     : 2022.08.14
Python version     : 3.10.10 (main, Mar  5 2023, 22:26:53) [GCC 12.2.1 20230201]
Processor          :
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-6.2.8-arch1-1-x86_64-with-glibc2.37
sys.stdout.enc     : utf-8
default enc        : utf-8
Config dir         : /home/tomasi/.config/mps-youtube
dbus               : 1.3.2
glib               : True
env:TERM           : xterm-256color
env:SHELL          : /usr/bin/zsh
env:LANG           : en_US.UTF-8

Installed yt-dlp via pipx

└─(12:01:45)──> yt-dlp -U
Available version: [email protected], Current version: [email protected]
yt-dlp is up to date ([email protected])

Installed yt-dlp from AUR:

aur/yt-dlp-git 2023.03.03.r6.g283a0b5bc-1 (+35 3.68) (Installed: 2023.03.04.r55.gab92d8651-1)                                                                                                                                          /0.7s
@diggidong
Copy link

you need to update yt-dlp from within yewtube virtenv with:
pipx runpip yewtube install -U yt-dlp

@tom-i
Copy link
Author

tom-i commented Apr 3, 2023

That helps.. thx so much :-)

@tom-i tom-i closed this as completed Apr 3, 2023
gnu010 added a commit to gnu010/yewtube that referenced this issue Sep 16, 2023
This adds the pip / pipx commands to upgrade all the dependencies. This makes directed actions like mps-youtube#1225 (comment) unnecessary.
iamtalhaasghar pushed a commit that referenced this issue Sep 16, 2023
This adds the pip / pipx commands to upgrade all the dependencies. This makes directed actions like #1225 (comment) unnecessary.
iamtalhaasghar added a commit that referenced this issue Jan 5, 2025
* 2.10.3

Automatically generated by python-semantic-release

* chore: use pipenv

* fix: #806 - pressing q doesn't stops playback when in repeat mode

* 2.10.4

Automatically generated by python-semantic-release

* fix: #1243 bumped yt-dlp version

Thanks to @galgot

* 2.10.5

Automatically generated by python-semantic-release

* docs: extend upgrade instructions (#1249)

This adds the pip / pipx commands to upgrade all the dependencies. This makes directed actions like #1225 (comment) unnecessary.

* added a notice

* fix syntax warnings on 3.12 (#1263)

* Update project URL and version maintenance (#1262)

* Update project URL

* Update __version__ in setup.py

This suppresses the update notifications

* help new: more accurate helptext

`help new` doesn't actually check whether there's a new version,
it shows the changelog for the latest release no matter what.
Update helptext to reflect this.

* Update COLLABORATORS.md

* Fix Issue #1064 and #1283: User and Channel searches to return all videos including optional filtering of search terms (#1282) (#1288)

* Updated the all_videos_from_channel function to return all videos from a channel, not just the first page of playlist results (previous method only returned up to 100 videos max).

* Updated the usersearch_id function to filter the returned videos by search term in the title or description. This restores the ability to search a user's videos.

Co-authored-by: Robert Hill <[email protected]>

* 2.11.0

Automatically generated by python-semantic-release

* 2.11.1

Automatically generated by python-semantic-release

* 2.11.2

Automatically generated by python-semantic-release

* 2.11.3

Automatically generated by python-semantic-release

* 2.11.4

Automatically generated by python-semantic-release

* 2.11.5

Automatically generated by python-semantic-release

* chore: update author email

* fix: wheel_recipe.sh

* 2.11.6

Automatically generated by python-semantic-release

* fix: semantic_release version for pypi setup.py was stuck

* 2.11.7

Automatically generated by python-semantic-release

* chore: clean up setup.cfg

* 2.12.0

Automatically generated by python-semantic-release

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: fslori <[email protected]>
Co-authored-by: Branch Vincent <[email protected]>
Co-authored-by: lawrence <[email protected]>
Co-authored-by: Robert Hill <[email protected]>
Co-authored-by: semantic-release <semantic-release>
iamtalhaasghar added a commit that referenced this issue Jan 5, 2025
* 2.10.3

Automatically generated by python-semantic-release

* chore: use pipenv

* fix: #806 - pressing q doesn't stops playback when in repeat mode

* 2.10.4

Automatically generated by python-semantic-release

* fix: #1243 bumped yt-dlp version

Thanks to @galgot

* 2.10.5

Automatically generated by python-semantic-release

* docs: extend upgrade instructions (#1249)

This adds the pip / pipx commands to upgrade all the dependencies. This makes directed actions like #1225 (comment) unnecessary.

* added a notice

* fix syntax warnings on 3.12 (#1263)

* Update project URL and version maintenance (#1262)

* Update project URL

* Update __version__ in setup.py

This suppresses the update notifications

* help new: more accurate helptext

`help new` doesn't actually check whether there's a new version,
it shows the changelog for the latest release no matter what.
Update helptext to reflect this.

* Update COLLABORATORS.md

* Fix Issue #1064 and #1283: User and Channel searches to return all videos including optional filtering of search terms (#1282) (#1288)

* Updated the all_videos_from_channel function to return all videos from a channel, not just the first page of playlist results (previous method only returned up to 100 videos max).

* Updated the usersearch_id function to filter the returned videos by search term in the title or description. This restores the ability to search a user's videos.

Co-authored-by: Robert Hill <[email protected]>

* 2.11.0

Automatically generated by python-semantic-release

* 2.11.1

Automatically generated by python-semantic-release

* 2.11.2

Automatically generated by python-semantic-release

* 2.11.3

Automatically generated by python-semantic-release

* 2.11.4

Automatically generated by python-semantic-release

* 2.11.5

Automatically generated by python-semantic-release

* chore: update author email

* fix: wheel_recipe.sh

* 2.11.6

Automatically generated by python-semantic-release

* fix: semantic_release version for pypi setup.py was stuck

* 2.11.7

Automatically generated by python-semantic-release

* chore: clean up setup.cfg

* 2.12.0

Automatically generated by python-semantic-release

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: fslori <[email protected]>
Co-authored-by: Branch Vincent <[email protected]>
Co-authored-by: lawrence <[email protected]>
Co-authored-by: Robert Hill <[email protected]>
Co-authored-by: semantic-release <semantic-release>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants