darkhz / invidtui

A TUI based Invidious client
MIT License
191 stars 6 forks source link

[bug]: "Unable to load" a video #45

Closed justchokingaround closed 1 month ago

justchokingaround commented 2 months ago

i am unable to get any video to play on nixOS. i've tried building from source and also tried out the latest release, but unfortunately none worked for me. (i'm not sure if this is related to e9c4450460ba8084f02cca6cd0aeb3a4351787e3, but it seems like that didn't fix it) image

as you can see here, mpv is able to play the link that is displayed for a given video image

darkhz commented 2 months ago

I'll take a look into it.

darkhz commented 2 months ago

@justchokingaround, how did you attempt to play the video exactly? Did you press 'a'/'v' on the media item?

justchokingaround commented 2 months ago

yep, i pressed v. but the same happens for a as well

darkhz commented 2 months ago

Okay, so apparently a particular endpoint in that instance (local=true) is disabled, that's why it doesn't return any media. I'll issue a fix soon. Meanwhile you can try changing instances and loading media.

justchokingaround commented 2 months ago

i had the same issue with the couple other instances i tried

darkhz commented 2 months ago

@justchokingaround In the second screenshot, MPV is able to play the video because it extracts all the media information from YouTube (yes, even though the URL provided is an Invidious URL), not exactly from the Invidious instance. That particular instance does not play some videos properly mainly because it contains outdated stream url data, when I tested it. Can you list the other instances you tried so that I can test those as well?

justchokingaround commented 2 months ago

yeah, i just tried out all of them, and i get that error for every single one of them. the only exception is iv.melmac.space for which i get a Media fetch error

darkhz commented 2 months ago

Even for invidious.protokolla.fi? It seems to be working for me. What is the exact error you get?

justchokingaround commented 2 months ago

image image

darkhz commented 2 months ago

Strange, it does work over here: image

Can you post your MPV version, and also try this command: mpv 'https://invidious.protokolla.fi/latest_version?id=xXlCcdPz6Vc&itag=139&local=true'

justchokingaround commented 2 months ago

image

darkhz commented 2 months ago

Can you try upgrading your MPV version to 0.38.0? There were some API changes in the latest version, and the latest commit adapts to those changes.

justchokingaround commented 1 month ago

this got fixed with mpv 0.38.0. sorry for the late response, i completely forgot :pensive: