From 07fc2644a237187dd4c5680e88f4adadbf533603 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 12 Aug 2015 12:06:23 -0600 Subject: Initial commit of the working files --- segments/np_pithos.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 segments/np_pithos.py (limited to 'segments/np_pithos.py') diff --git a/segments/np_pithos.py b/segments/np_pithos.py new file mode 100755 index 0000000..9d022e6 --- /dev/null +++ b/segments/np_pithos.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +import dbus + +pithos_bus = dbus.SessionBus() + +pithos = pithos_bus.get_object('net.kevinmehall.Pithos', '/net/kevinmehall/Pithos') +props = pithos.get_dbus_method('GetCurrentSong', 'net.kevinmehall.Pithos') + +print props()["artist"] + " - " + props()["title"] -- cgit v1.2.3