GetDuration Tool for Flac & Ape Music

Xlobby plugin development

GetDuration Tool for Flac & Ape Music

Postby tswhite70 on Sat Jan 19, 2008 5:56 pm

Since things have been quiet I thought I'd throw out another personal tool - hopefully someone will find it useful. The Pre-Calrad version of XL does not support song durations for non-mp3 files. I wrote this EXE so I could have duration for my FLAC files, it also should support Monkey's Audio files. It will ignore Id3v2 tags if they have been put on the files. It will parse the FLAC an Ape headers to determine duration, it's incremental and will only parse tracks that do not have a duration listed or have a duration of 00:00.

Download here:
http://home.comcast.net/~twhite644/tool ... ration.zip

Instructions:
1) Unzip and place GetDuration.exe in your Xlobby\Plugins folder.
2) Shut down Xlobby (you can leave XL running and do a reset category after the tool runs if you really want to, back up your music DB first)
3) Make a copy of your music db just in case... by default the script will parse Xlobby\Databases\music.xml
4) Run GetDuration.exe either from the command line or just double click it.
5) Start Xlobby.

The tool has a couple options at the command line:
Parameters:
"/db=filename" sets the music xml filename
"/full" get duration on all tracks (otherwise incremental only)

That's it - let me know how it goes...

good luck,
tsw
tswhite70
 
Posts: 318
Joined: Tue Jan 06, 2004 3:44 pm
Location: Houston, Tx

Re: GetDuration Tool for Flac & Ape Music

Postby C-moi on Sat Feb 16, 2008 3:10 pm

Thanks tswhite70 : it works great ! :D
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: GetDuration Tool for Flac & Ape Music

Postby P3rv3rt B3ar on Sat Feb 16, 2008 4:23 pm

I mainly use mp3s, but im really happy to see Freelobby to get some development of its own. 8)
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland