18 Jun '13 - 06:40 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: PHP XMPlay library reader and XML converter class  (Read 992 times)
Rah'Dick
XMPlay Support
Posts: 923


« on: 16 Feb '11 - 10:06 »
Reply with quoteQuote

Hey everyone!

I know I've been away for quite some time and most of you probably won't even remember me. A lot of stuff happened during the last two years and my life focus shifted more towards my job, other projects and private life. As you may have noticed: I handed control of the Support Site back over to Keltic Danor, who is doing really great as the new Support Site Guru.

Still, I'm an avid user of XMPlay and like programming a lot. That is why I wrote a PHP class that can read a XMPlay .library file into an object structure and spit it back out as XML. I initially planned to include this script into the Support Site, but that was quite a while ago. The files are now exactly 1 year + 1 day old and have been idling on my hard drive since then. The script might even need adaptation to any library format changes that might have happened in the mean time, so don't expect it to work right out of the box. The idea was to allow some kind of data analysis with the XML stream and to enable some kind of other tool to generate cool graphs out of your listening habits.

I don't know what anyone of you is going to use it for, but here it is. Do with it whatever you like, but please don't ask me for support, like "how do I use this?", "how do I install PHP?" or "what does it do?"

Just a comment on the .zip contents:
  • index.php - example script that uses the class to convert a "xmplay.library" file in the same directory to "xmplay.library.xml".
  • XMPlayLibrary.class.php - the core class which contains all song entries and does the XML conversion.
  • XMPlayLibraryEntry.class.php - a subclass for single song entries.
  • xmplay35_library_format.txt - a description of the library file format in XMPlay 3.5.
(Yes, I'm aware that these classes are coded by PHP4 OOP standards, which are outdated.)

--------------

TL;DR: Use this PHP class to convert .library files into XML. No warranties, no support. If you don't know your way around PHP or have never heard of OOP, don't download this.

Anyway, comments are welcome!

Cheers,
Thomas

* PHP_XMPlayLibrary.zip (3.38 KB - downloaded 8 times.)
Logged
saga
Posts: 1392


« Reply #1 on: 16 Feb '11 - 11:59 »
Reply with quoteQuote

Gosh, it's been a while... Welcome back! Smiley
Sounds like a handy tool. Smiley Slightly related, I've written a tool which cleans up my XMPlay library years ago...
Logged
piovrauz
Posts: 489


« Reply #2 on: 16 Feb '11 - 14:16 »
Reply with quoteQuote

no I don't remember you at all. but I still have an .ogg of a track you composed... I think it were yours, right? XD
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines