XeroxDev / YTMD-StreamDeck

This Stream Deck Plugin allows you to control the YouTube Music Desktop App (https://github.com/ytmdesktop/ytmdesktop)
MIT License
55 stars 17 forks source link

[FEATURE]: Set autoplay playlist #42

Closed emilioagustin closed 7 months ago

emilioagustin commented 2 years ago

Consent

Feature

I will like to select a custom playlist for playing specific music from Stream deck

Thanks and great work

Solution

No response

Alternatives

No response

Anything else?

No response

XeroxDev commented 2 years ago

YTMDesktop already supports this feature standalone (without the need of plugins). You just have to create a action that opens ytmd://play/<VideoID>/<PlaylistID>.

<VideoID> is your desired video Id (the entry / first video in the Playlist as example) and <PlaylistID> is the playlist id.

emilioagustin commented 2 years ago

Thanks my friend but this command crashes, I have put this:

ytmd://play/PLHrFvO1TALRjaDVjHEIku7PfBYvfg-Wph

And when we open the app throws this:

image image

Other thing its that you can´t use this command automatically by Stream deck because Chrome throws a popup for confirming open ytmd app

image

XeroxDev commented 2 years ago

This error message is a known bug in the YTMDesktop Application (see ytmdesktop/ytmdesktop#464) but got (as far as I know) fixed in their Beta / Nightly release (I would recommend to download the latest (nightly/pre-)release in their release tab.

About the "open it instantly in the YTMDesktop app", I've to ask the developers of YTMDesktop, if they have a workaround for you.

emilioagustin commented 2 years ago

Ok, I have downloaded the nightly version and this bug its fixed. I am waiting for your response about the popup.

Thanks bro!

XeroxDev commented 2 years ago

I had contact with one of the developers.

Could you try the run action, instead of a browser / url action?

emilioagustin commented 2 years ago

I have ran the action from the Windows run app and works perfect but it doesnt work like it should. I cant call a run script from stream deck. I have tested the API but fails to set the playlist, only works for query and other features.

Waiting for news Thanks a lot!

XeroxDev commented 2 years ago

YTMDesktop is currently working on expanding the API for third-party developers (like me) and one of the new endpoints are for this kind of features. If it is getting released (see ytmdesktop/ytmdesktop#845) I'll hop on a feature to simplify it. In the meantime I set this issue to "blocked" and we've to use the workaround with the ytmd://play url and wait for it to release.

emilioagustin commented 2 years ago

Perfect my friend, waiting for news!!

XeroxDev commented 7 months ago

Hey! I'm currently working on the V2 support and tried to implement your suggested feature.

Sadly I've to inform you, that it's not possible to implement this in the current plugin architecture. I've tried it in multiple ways but it seems no matter what I try, I can't use custom URI schemes (the only thing YTMDesktop supports to do something like that). Elgato seems to block it and like mentioned before, YTMDestkop, even in V2, doesn't support such things through their API.

That's why I've considered to /close this issue for now. I'll re-investigate it in the future to look if support gets added.

Fefedu973 commented 7 months ago

I hope that you found a solution ! thanks for everything

XeroxDev commented 7 months ago

I hope that you found a solution ! thanks for everything

Nothing changed since I closed this sadly. Until they add a possibility, it's not possible.

Fefedu973 commented 7 months ago

I hope that you found a solution ! thanks for everything

Nothing changed since I closed this sadly. Until they add a possibility, it's not possible.

Have you asked the YTMD devs if it could be implemented?

XeroxDev commented 7 months ago

Sure. They confirmed they will implement it, but not when.

Fefedu973 commented 7 months ago

Ok nice. Thanks !