View Full Version : Obtaining total number of tracks
Ian Crockford
2003-12-09, 08:56
Is it at all possible to obtain a count of the number of songs in the
library? I want to use PHP (via Apache) to parse the output from SlimServer
so I can present the information on a different page on my "normal" web
server. I currently use the Fishbone skin when using the web interface, but
this is pretty heavy-weight for the purpose of parsing the page in PHP to
just extract the total song count.
Maybe a small XML page can be loaded which returns the total song count (and
total albums, perhaps?). Would this be possible - I know nothing about XML,
nor how the skins are constructed.
Thanks
Ian
> Maybe a small XML page can be loaded which returns the total song count
There's a XML template: http://yourhost:9000/xml/. Maybe you find your
information there...
--
Michael
-----------------------------------------------------------
http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg
http://www.jo-sac.ch - JO-SAC inoffiziell!
http://photo.jo-sac.ch - mein kleines Photoalbum
Hey Ian,
Ian Crockford wrote:
> Maybe a small XML page can be loaded which returns the total song count
> (and total albums, perhaps?). Would this be possible - I know nothing
> about XML, nor how the skins are constructed.
This URL will, among other things, give you the total songs/artists/albums!
http://slimserver:9000/xml/browse.xml
Otherwise you can use the CLI to get/put information to/from the slimserver.
I found a PHP class that did that which I'm using at http://simply.nu temporarily
just for fun...
rgds
/andreas
> I found a PHP class that did that which I'm using at http://simply.nu
> temporarily just for fun...
Is it publicly available?
--
Michael
-----------------------------------------------------------
http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg
http://www.jo-sac.ch - JO-SAC inoffiziell!
http://photo.jo-sac.ch - mein kleines Photoalbum
I have no idea... I've been trying to find out where I got it from!
There's no info in the class file itself...
Closest match is a Tobi (Tobias Schlottke), blogging at http://www.trendwhores.de/.
He mentions in an entry the CLI interface and that he wrote a PHP Class
for it, and another site mentions him and a his slimp3 php class.
In the blog-entries you can find a "Song of the Moment" with a little
thumbnail of a slimp3 beside it. ;)
Try him, if no success, you can probably get a copy of my file...
rgds
/andreas
Michael Herger wrote:
>> I found a PHP class that did that which I'm using at http://simply.nu
>> temporarily just for fun...
> Is it publicly available?
Powered by vBulletin® Version 4.2.5 Copyright © 2019 vBulletin Solutions Inc. All rights reserved.