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

No streams available, exception in thread, NoneType object not subscriptable in streams.py #1280

Open
kkkaamis opened this issue Jul 31, 2024 · 9 comments

Comments

@kkkaamis
Copy link

kkkaamis commented Jul 31, 2024

Issue

Videos don't play, this error shows up. Sometimes it works, then goes back to not working.
_No streams available [1/71>

Exception in thread Thread-2 (_preload):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/home/devuan/.local/pipx/venvs/yewtube/lib/python3.11/site-packages/mps_youtube/streams.py", line 196, in preload
get_size(ytid, stream['url'], preloading=True)
~~~~~~^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Your Environment

Devuan linux, using pipx and mpv

@VanackSabbadium
Copy link

VanackSabbadium commented Aug 2, 2024

Same here.

Debian Sid, using pipx, mpv, python 3.12.4.
Yewtube 2.10.5.

@suverino
Copy link

suverino commented Aug 3, 2024

same issue here on two different machines.

Both use following environment:
Arch Linux, pipx, python 3.12.4, mpv, Yewtube 2.10.5

@avoidik
Copy link

avoidik commented Aug 6, 2024

at least audio:

set show_video False

@misterfish
Copy link

yewtube has been broken for about 2 weeks, due, I suspect, to a change made by Youtube in how the streams may be accessed. If you do a fresh install of yewtube then you may at least be able to get audio-only default streams.

youtube-dl and ytfzf still work. But ytfzf uses a different URL, which is not optimized for streaming, meaning it often gets stuck buffering, and seeking is a pain.

@VanackSabbadium
Copy link

It seems like Yewtube is somehow dead or rarely updated, so i don't think this is gonna be solved in a short time.

Does anyone know an alternative program?

@fgaz
Copy link
Contributor

fgaz commented Aug 8, 2024

After a quick look at the source code, I think the issue is not in yewtube itself, but in the youtube-search-python dependency, which is sadly unmaintained.

@VanackSabbadium
Copy link

After a quick look at the source code, I think the issue is not in yewtube itself, but in the youtube-search-python dependency, which is sadly unmaintained.

Alright, so we are basically doomed...

@thisIsTheFoxe
Copy link

I haven't run into this issue myself, but I did notice a comment about youtube-search-python from a contributor which might be helpful:

youtube-search-python has been archived for months now but its still working. We'll port to another backend .i.e. pytube, invidious api when things will break. For now enjoy!

Originally posted by @iamtalhaasghar in #1204 (comment)

Maybe it is time to switch to a new new lib..

@fgaz
Copy link
Contributor

fgaz commented Sep 10, 2024

Seems like it's working again (for me at least). Still, without a maintained search library, it's only a matter of time until it stops working once and for all.

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

7 participants