From 1ab463b2353a86836799a00c1729fab721d694c8 Mon Sep 17 00:00:00 2001 From: Paul Sajna Date: Tue, 9 Dec 2014 16:09:19 -0800 Subject: [PATCH] Add paused to currenttrack response of json api --- src/libtomahawk-playdarapi/Api_v1_5.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libtomahawk-playdarapi/Api_v1_5.cpp b/src/libtomahawk-playdarapi/Api_v1_5.cpp index da2d0385b..b3803f210 100644 --- a/src/libtomahawk-playdarapi/Api_v1_5.cpp +++ b/src/libtomahawk-playdarapi/Api_v1_5.cpp @@ -96,6 +96,7 @@ Api_v1_5::playback( QxtWebRequestEvent* event, const QString& command ) { QVariantMap trackInfo; trackInfo.insert( "playing", true ); + trackInfo.insert( "paused", AudioEngine::instance()->isPaused() ); trackInfo.insert( "position", AudioEngine::instance()->currentTime() / 1000 ); trackInfo.insert( "bitrate", currentTrack->bitrate() ); if ( !currentTrack->resolvedBy().isNull() ) {