i have encountered a bug in the api : )
All tracks with a duration of 0 - 59:59 min:sec are listed quite fine.
If you are listening to an big mix with duration > 60 min the api does not deliver correct information.
In Madsonic itself , the track is gone on the right side.
The api query knows that you are listening, but has dropped any information.
This is a query taken with all info given like it should - right after start
Code: Select all
SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok [type] => madsonic [version] => 1.12.0 ) [nowPlaying] => SimpleXMLElement Object ( [entry] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 28047 [parent] => 28048 [title] => Deep - Abba-Mania [album] => Deep - Abba-Mania [artist] => Deep - Abba Mania [isDir] => false [coverArt] => 28048 [created] => 2012-05-17T20:08:04 [duration] => 4072 [bitRate] => 192 [size] => 97795287 [rank] => 0 [suffix] => mp3 [contentType] => audio/mpeg [isVideo] => false [path] => DEEP DANCE/Artist Mixes and the Bloody Rest/Deep - Abba Mania/Deep - Abba-Mania/Deep - Abba-Mania.mp3 [albumId] => 2182 [artistId] => 1862 [type] => music [transcodedSuffix] => mp3 [transcodedContentType] => audio/mpeg [username] => DoCC [playerId] => 1 [minutesAgo] => 0 ) ) ) )
Code: Select all
SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok [type] => madsonic [version] => 1.12.0 ) [nowPlaying] => SimpleXMLElement Object ( [entry] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 28047 [parent] => 28048 [title] => Deep - Abba-Mania [album] => Deep - Abba-Mania [artist] => Deep - Abba Mania [isDir] => false [coverArt] => 28048 [created] => 2012-05-17T20:08:04 [duration] => 4072 [bitRate] => 192 [size] => 97795287 [rank] => 0 [suffix] => mp3 [contentType] => audio/mpeg [isVideo] => false [path] => DEEP DANCE/Artist Mixes and the Bloody Rest/Deep - Abba Mania/Deep - Abba-Mania/Deep - Abba-Mania.mp3 [albumId] => 2182 [artistId] => 1862 [type] => music [transcodedSuffix] => mp3 [transcodedContentType] => audio/mpeg [username] => DoCC [playerId] => 1 [minutesAgo] => 59 ) ) ) )
Code: Select all
SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok [type] => madsonic [version] => 1.12.0 ) [nowPlaying] => SimpleXMLElement Object ( [0] => ) )