youtube-music icon indicating copy to clipboard operation
youtube-music copied to clipboard

[DEPRECATED] Feature: Adds integration of topik/youtube-music-obs-widget as plugin

Open topik opened this issue 1 year ago • 4 comments

Hello,

I got a request to add a plugin for my obs widget so here it is.

Plugin makes a simple http server and give a info about current song in JSON. The JSON structure is the same as in other YT music software that is being used so the obs widget is compatible.

Feel free to rename the plugin.

Thanks

topik avatar Apr 19 '23 13:04 topik

This looks extremely similar to https://github.com/th-ch/youtube-music/blob/master/plugins/tuna-obs/back.js

Could you give a quick explanation why a new plugin is needed?

Araxeus avatar Apr 25 '23 10:04 Araxeus

I took some inspiration from tuna-obs because I'm not a Node.js developer. Tuna-obs sends requests to the OBS plugin itself, which means you have to install the OBS (and the OBS plugin) for the whole thing to work.

However, my plugin works the opposite way. It creates a webserver and serves JSON data about the current song, so you don't need to install anything. Just open the plugin's webpage and it will work. You can add the webpage as a source to OBS.

Additionally, my plugin has a different design.

topik avatar Apr 25 '23 11:04 topik

PS: You should use a formatter on your code :^)

You are absolutely right, no idea why i didn't do that. I would do it in any other language :| ... Also thanks for pointing out wrong variable type.

topik avatar Jul 21 '23 14:07 topik