aboutsummaryrefslogtreecommitdiffstats
path: root/libmpdclient.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libmpdclient.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libmpdclient.c b/libmpdclient.c
index a58ca06e0..7a70faa72 100644
--- a/libmpdclient.c
+++ b/libmpdclient.c
@@ -621,6 +621,8 @@ mpd_Stats * mpd_getStats(mpd_Connection * connection) {
stats->numberOfSongs = 0;
stats->uptime = 0;
stats->dbUpdateTime = 0;
+ stats->playTime = 0;
+ stats->dbPlayTime = 0;
mpd_getNextReturnElement(connection);
if(connection->error) {
@@ -644,6 +646,12 @@ mpd_Stats * mpd_getStats(mpd_Connection * connection) {
else if(strcmp(re->name,"db_update")==0) {
stats->dbUpdateTime = strtol(re->value,NULL,10);
}
+ else if(strcmp(re->name,"playtime")==0) {
+ stats->playTime = strtol(re->value,NULL,10);
+ }
+ else if(strcmp(re->name,"db_playtime")==0) {
+ stats->dbPlayTime = strtol(re->value,NULL,10);
+ }
mpd_getNextReturnElement(connection);
if(connection->error) {