Is there a command line tool (like playerctl) which can grab the song title/artist from plexamp?
You can use the existing Plex Companion API; if you’re on the same machine e.g. use
$ curl "http://127.0.0.1:20000/player/timeline/poll?wait=0&commandID=6006&includeMetadata=1"
@elan said:
You can use the existing Plex Companion API; if you’re on the same machine e.g. use$ curl "http://127.0.0.1:20000/player/timeline/poll?wait=0&commandID=6006&includeMetadata=1"
I may just be blind but is this companion API documented anywhere?
Nowhere publicly yet, sorry.
(Also, working on getting playerctl to work with Plexamp.)
If plexamp based on mpd why not use mpc or something like that?
The latest 1.0.3 should work with playerctl, fwiw.
I don’t see plexamp as a service.
dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames returns nothing related to PlexAmp.
What does plexamp register as?
Hey guys,
Just noticed this post, not sure if it is helpful or not, but I just left a comment over on the Plexamp loves Linux! thread with how I control PlexAmp on linux.
That works, but it would be nice to also have DBus working so that I don’t have to have a separate set of keybinds for Plex vs other media players.
I have 1.0.4 but I’m not having any luck with playerctl.
$ playerctl pause
Connection to player failed: No players found
(playerctl:15387): GLib-GObject-CRITICAL **: 19:25:07.732: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
I have the appropriate keys bound
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioNext exec playerctl next
Haven’t been able to find much based on that error message , anyone have any idea?
Sorry, I’m not familiar enough with this aspect of Linux to help out 