1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

Merge pull request from sajattack/master

Add paused to currenttrack response of json api
This commit is contained in:
Dominik Schmidt 2014-12-10 01:27:06 +01:00
commit af1cd29673

@ -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() ) {