keifufu / WebNowPlaying

WebNowPlaying browser extension. Provides support for browser-based players
MIT License
81 stars 10 forks source link

Request: Add "Macro Deck 2 Adapter" #4

Closed jbcarreon123 closed 1 year ago

jbcarreon123 commented 1 year ago

Name: "Macro Deck 2 Adapter"
GitHub: https://github.com/jbcarreon123/WebNowPlaying-Redux-Macro-Deck
Description: It is used for the open-source application "Macro Deck 2" and it will be replacing the outdated and buggy "KSoft.MediaInfo plugin" that Macro Deck has. This will make the formerly requiring 3 plugins to set volume, get song info, and media controls to only 1 plugin. The plugin is coded on .NET Core 3.1.

keifufu commented 1 year ago

Thank you for your submission! However, there are a few issues I spotted while reading your code.

The default seems to open a websocket for legacy communication, where you handle messages and events yourself. I assume it's for spicetify but there are a few things you need to know.

I also do not see a default port hard-coded anywhere. It seems to be loaded from some config but I can't find the default for that, regardless, the port you use should always stay the same as WebNowPlaying-Redux does not allow users to change the port for official adapters. They are meant to keep the same port in order to guarantee backwards-compatibility with older version of said adapters.

Please also remove any references to WebNowPlaying Companion, or any old names / repo links. The official chrome/firefox webstore listing for what's currently known as WebNowPlaying Companion will update and rename to WebNowPlaying-Redux in the coming days.

jbcarreon123 commented 1 year ago

The Companion/Spicetify codes are now removed.

keifufu commented 1 year ago

Added it to the list of adapters. Will be available once it's updated on the webstore in the coming days.