Created
January 6, 2015 22:56
-
-
Save ozcan/1dd0d81aef92526dadc6 to your computer and use it in GitHub Desktop.
spotify play song with dbus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dbus | |
| bus = dbus.SessionBus() | |
| spotify = bus.get_object('com.spotify.qt', '/') | |
| player = dbus.Interface(spotify, 'org.freedesktop.MediaPlayer2') | |
| player.OpenUri('spotify:track:1inG2cgfeGVBsTCcmMIv0e') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment