Parsing of CUE files

What features would you like to see in future versions of getID3() ?
Post Reply
Pernod
getID3() contributor
Posts: 103
Joined: Sat Mar 21, 2009 5:30 pm
Are you a spambot?: no
Location: London, UK
Contact:

Parsing of CUE files

Post by Pernod » Sat Mar 21, 2009 5:38 pm

Hi,

I'd like to see parsing of CUE files added.

I have many albums with DTS audio ripped to a single WAV with CUE. Being able to parse the CUE would allow me to determine start and end positions within the WAV of each track, and be able to stream individual tracks from SwissCenter.

Thanks,
Nigel

Pernod
getID3() contributor
Posts: 103
Joined: Sat Mar 21, 2009 5:30 pm
Are you a spambot?: no
Location: London, UK
Contact:

Re: Parsing of CUE files

Post by Pernod » Wed Mar 25, 2009 8:57 pm

I've now developed a parser for CUE files which can be used to return an array of defining the CueSheet.

Any chance of this being included in the release?
Attachments
cue_parse.class.php
(6.96 KiB) Downloaded 1241 times

James Heinrich
getID3() v1 developer
Posts: 1475
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Parsing of CUE files

Post by James Heinrich » Thu Mar 26, 2009 12:50 am

Attached are the adapted versions that will be included in the next releases of getID3.
Thank you for your contribution.

The output is very slightly different from your submission, for example:
* lowercase keynames preferred to be consistent with the rest of getID3 style
* minutes/seconds/frames returned as integers
* flags returned as booleans rather than strings

Bug reports are welcome as this has really only been tested on one type of .cue file. If you have a bug to report, I'd appreciate you also providing the CUE file (attached to the message, or even just quoted in the message).
Attachments
getid3v2-cue_20090325.zip
CUE support for getID3 v2.0.x
(16.26 KiB) Downloaded 1232 times
getid3v1-cue_20090325.zip
CUE support for getID3 v1.7.x
(14.56 KiB) Downloaded 1208 times

Post Reply