Venipa / ytmdesktop2

Unofficial Youtube Music Desktop App, with LastFM support.
https://youtube-music.app
Creative Commons Zero v1.0 Universal
455 stars 30 forks source link

I am a massive idiot #27

Closed IGS-GIT closed 1 year ago

IGS-GIT commented 2 years ago

So this is definitely user error, but I can't seem to get OBS to detect my songs. I've got Snip going and have moved all the necessary files into Snip's folder. I have added the browser source and formatted it to work with the plugin. I am still getting nothing displaying. Sorry if this is dumb, just really want it to work and love what ur doing :)

Venipa commented 2 years ago

ye because snip isnt required here or rather not supported, you'll need to enable the api in the ytmdesktop2 settings & load the html into a browser source. "Enable API" in ytmdesktop2: image

Extract zyphens modded html files and open the song.html in the browser source. image

IGS-GIT commented 2 years ago

I have the API enabled. image

I extracted the HTML files and made a source directing to the song.html file image image

It's still not displaying. I am not sure what I'm missing

Venipa commented 2 years ago

i'll look into it, seems to not start somehow

IGS-GIT commented 1 year ago

sorry to bother but any update? it may still be user error. not sure how the HTML file is supposed to find my YTM instance.

CamillePele commented 1 year ago

I have the same problem and I noticed this error in the Chrome console GET http://localhost:13091/track net::ERR_FAILED 200 Access to XMLHttpRequest at 'http://localhost:13091/track' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I don't know much about web but it seems to be on the side of ytmdesktop2

IGS-GIT commented 1 year ago

I have the same problem and I noticed this error in the Chrome console GET http://localhost:13091/track net::ERR_FAILED 200 Access to XMLHttpRequest at 'http://localhost:13091/track' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I don't know much about web but it seems to be on the side of ytmdesktop2

Might have something to do with admin privileges. Try launching in admin mode

Venipa commented 1 year ago

@CamillePele @IGS-GIT to fix this issue start obs with --disable-web-security which also disables cors enforcement just add it to the shortcut on the desktop or startmenu image

edit: also make sure to download the latest browser source from the link in the readme in this repo and set your api port to 27000