diff --git a/sources/ptm/contents/code/dataengine.py b/sources/ptm/contents/code/dataengine.py index 5ffae3b..b99dd0c 100644 --- a/sources/ptm/contents/code/dataengine.py +++ b/sources/ptm/contents/code/dataengine.py @@ -204,6 +204,12 @@ class DataEngine: updatedData['value']['progress'] = str(data[QString(u'amarok_progress')].toUtf8()).decode("utf-8") updatedData['value']['time'] = str(data[QString(u'amarok_duration')].toUtf8()).decode("utf-8") updatedData['value']['title'] = str(data[QString(u'amarok_title')].toUtf8()).decode("utf-8") + elif (adv['player'] == "clementine"): + updatedData['value']['album'] = str(data[QString(u'clementine_album')].toUtf8()).decode("utf-8") + updatedData['value']['artist'] = str(data[QString(u'clementine_artist')].toUtf8()).decode("utf-8") + updatedData['value']['progress'] = str(data[QString(u'clementine_progress')].toUtf8()).decode("utf-8") + updatedData['value']['time'] = str(data[QString(u'clementine_duration')].toUtf8()).decode("utf-8") + updatedData['value']['title'] = str(data[QString(u'clementine_title')].toUtf8()).decode("utf-8") elif (adv['player'] == "mpd"): updatedData['value']['album'] = str(data[QString(u'mpd_album')].toUtf8()).decode("utf-8") updatedData['value']['artist'] = str(data[QString(u'mpd_artist')].toUtf8()).decode("utf-8") diff --git a/sources/ptm/contents/ui/configwindow.ui b/sources/ptm/contents/ui/configwindow.ui index ec8c49c..26d3e22 100644 --- a/sources/ptm/contents/ui/configwindow.ui +++ b/sources/ptm/contents/ui/configwindow.ui @@ -1190,7 +1190,7 @@ $ps - list of running processes comma separated 0 - 0 + -214 526 754 @@ -1747,6 +1747,11 @@ del - remove item amarok + + + clementine + + mpd