summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorFrank Haun <fh@fhaun.de>2014-06-30 01:02:11 +0200
committerFrank Haun <fh@fhaun.de>2014-06-30 01:02:11 +0200
commit071335727a9f27a48baa3bffec6cc2b9b57a5445 (patch)
treea296dd3c9a204f88839fa7506e216ede62e3cdd3 /modules
parent5935b1367338a145db18c50bcc3f965a54b67d8c (diff)
clementine.py: Make python3 compatible.
Diffstat (limited to 'modules')
-rw-r--r--modules/clementine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/clementine.py b/modules/clementine.py
index 1a1c389..61917b7 100644
--- a/modules/clementine.py
+++ b/modules/clementine.py
@@ -19,8 +19,8 @@ class Py3status:
Get the current song metadatas (artist - title)
"""
track_id = check_output('qdbus org.mpris.clementine /TrackList org.freedesktop.MediaPlayer.GetCurrentTrack', shell=True)
- metadatas = check_output('qdbus org.mpris.clementine /TrackList org.freedesktop.MediaPlayer.GetMetadata ' + track_id, shell=True)
- lines = metadatas.split('\n')
+ metadatas = check_output('qdbus org.mpris.clementine /TrackList org.freedesktop.MediaPlayer.GetMetadata {}'.format(track_id.decode()), shell=True)
+ lines = metadatas.decode('utf-8').split('\n')
lines = filter(None, lines)
now_playing = ''