nick-parry / songLyrics

Get the lyrics for a song via bash. #bashisyourfriend
17 stars 5 forks source link

DBUS interface to get Spotify song info on OSX is different than on Ubuntu. #2

Closed nick-parry closed 6 years ago

nick-parry commented 8 years ago

On Ubuntu, the commands to get the title and artist don't work on OSx. Makes sense. We should have some logic determine what breed of system you are on and figure out the correct path for the OSx spotify dbus interface.

@learoyklinginsmith can probably handle this one too. :)

For quick reference, here is the dbus command that returns the info which the artist and title are parsed out of.

dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata
nick-parry commented 6 years ago

Fixed in: https://github.com/nick-parry/songLyrics/pull/3