th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.96k stars 510 forks source link

[Feature Request]: Way to control yt music specific features outside the app #1674

Closed Readf0x closed 9 months ago

Readf0x commented 9 months ago

Preflight Checklist

Problem Description

Personally, I use eww for my status bar, and I built this wonderful media widget in it.

Screenshot for proof: ![image](https://github.com/th-ch/youtube-music/assets/57838054/05ae4afc-c979-4459-b647-4919ea7df497)

I've been looking for a way to add like, dislike, and/or (maybe) shuffle and repeat buttons. The only problem is, I have no way to control those outside of the app. Not even the tray icon has shortcuts for them (I would've even tried to figure out how to fake inputs from the tray icon to make that work). A way to control these app-specific features, that aren't supported by mpris or xesam, would be amazing. If added, it should report whether or not said controls are active, and provide a method to toggle them.

Proposed Solution

There are many possible options, but simplest one for users to implement into their setups would be some kind of terminal ctl. This would likely not be very easy to add into the project, as it's at a far lower level than most of the existing features.

Alternatives Considered

Off the top of my head, I can think of a number of alternative ways to accomplish this.

That's all I can think of immediately, but there are likely other options as well.

Additional Information

No response

inson1 commented 9 months ago

there is gonna be rest api https://github.com/th-ch/youtube-music/discussions/1650#discussioncomment-8153540

Destroy666x commented 9 months ago

This is a dupe of many issues/PRs/discussions. I'm currently working on a PR for REST API, I'll likely finish it before the end of the month, if I find enough free time.

Readf0x commented 9 months ago

This is a dupe of many issues/PRs/discussions.

I don't have permission to manage labels, could someone close this as duplicate?

I'm currently working on a PR for REST API, I'll likely finish it before the end of the month, if I find enough free time.

Send me a link?

ArjixWasTaken commented 9 months ago

@Readf0x

Related to: #1581, #1650, #1566 Dead PRs: #1151, #767, #1094

ArjixWasTaken commented 9 months ago

@Destroy666x

If you don't have a lot of time, it is always an option to open a draft PR and receive help from us. At least I am willing to help, dunno the schedule of the others.

ArjixWasTaken commented 9 months ago

Closing as duplicate