Page 1 of 1

"API" question Playerqueue

Posted: 24 Dec 2014, 07:12
by DoCC
Hi Mad,

where das the playerqueue gets its information from ?
playor.PNG
playor.PNG (11.04 KiB) Viewed 2443 times
The album name "Black Snow...blabla " ? I'm a little bit confused, since , the album path is "v1", getNowPlaying resolves "v1".

Code: Select all

SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok [type] => madsonic [version] => 1.12.0 ) [nowPlaying] => SimpleXMLElement Object ( [entry] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 130748 [parent] => 130721 [title] => Halleluja (Live) [album] => v1 [artist] => Novalis Deux [isDir] => false [coverArt] => 130721 [year] => 2009 [genre] => Electronic [created] => 2010-03-13T04:34:50 [duration] => 223 [bitRate] => 141 [track] => 14 [size] => 3963913 [rank] => 0 [suffix] => mp3 [contentType] => audio/mpeg [isVideo] => false [path] => Black Snow - The Completely Different Xmas Compilation/2009 - v1/14. Novalis Deux - Halleluja (Live).mp3 [artistId] => 8612 [type] => music [transcodedSuffix] => mp3 [transcodedContentType] => audio/mpeg [username] => DoCC [playerId] => 1 [minutesAgo] => 0 ) )
getSong desplayes me an entire path

Code: Select all

SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok [type] => madsonic [version] => 1.12.0 ) [song] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 130748 [parent] => 130721 [title] => Halleluja (Live) [album] => v1 [artist] => Novalis Deux [isDir] => false [coverArt] => 130721 [year] => 2009 [genre] => Electronic [created] => 2010-03-13T04:34:50 [duration] => 223 [bitRate] => 141 [track] => 14 [size] => 3963913 [rank] => 0 [suffix] => mp3 [contentType] => audio/mpeg [isVideo] => false [path] => Black Snow - The Completely Different Xmas Compilation/2009 - v1/14. Novalis Deux - Halleluja (Live).mp3 [artistId] => 8612 [type] => music [transcodedSuffix] => mp3 [transcodedContentType] => audio/mpeg ) ) )
did you explode the pathstring ? cannot be.
i bet you are parsing the tags right ? , any chance to geht them via api ?

cause in most cases the tags are more reliable than dealing with paths and stuff

thx mate ,

scheene feiertog und kimm guad nüber : )