fix reading clementine

This commit is contained in:
arcan1s 2014-05-23 11:52:04 +04:00
parent 359e81ff93
commit 2d0a92eec1
3 changed files with 5 additions and 5 deletions

4
.gitignore vendored
View File

@ -1,7 +1,7 @@
sources/build
sources/usr
*src.tar.xz
*src.tar.gz
*src.tar.[gx]z
*pkg.tar.[gx]z
build
src
pkg

View File

@ -20,7 +20,7 @@ optdepends=("amarok: for music player monitor"
makedepends=('automoc4' 'cmake')
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
install=${pkgname}.install
md5sums=('40793e17541f81ec01dc1c921e0186e8')
md5sums=('c353d7b91178db55184ed4ea1b0b06a8')
backup=('usr/share/config/extsysmon.conf')
prepare() {

View File

@ -302,7 +302,7 @@ QStringList ExtendedSysMon::getPlayerInfo(const QString playerName,
}
else if (playerName == QString("clementine")) {
// clementine
command.start("qdbus org.kde.clementine /Player GetMetadata");
command.start("qdbus org.mpris.clementine /Player GetMetadata");
command.waitForFinished(-1);
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
@ -318,7 +318,7 @@ QStringList ExtendedSysMon::getPlayerInfo(const QString playerName,
info[4] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
}
}
command.start("qdbus org.kde.clementine /Player PositionGet");
command.start("qdbus org.mpris.clementine /Player PositionGet");
command.waitForFinished(-1);
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {