Skip Menu |

This queue is for tickets about the Net-FreeDB2 CPAN distribution.

Report information
The Basics
Id: 11550
Status: new
Priority: 0/
Queue: Net-FreeDB2

People
Owner: Nobody in particular
Requestors: bob.faist [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.8.2.6
Fixed in: (no value)



Subject: read Disc length regex problem
Net::FreeDB2::Entry.pm 0.8.2.3 # my $DL_RX = '^\s*#\s*Disc\s+length\s*:\s*(\d+)\s+seconds\s*$'; my $DL_RX = '^\s*#\s*Disc\s+length\s*:\s*(\d+)'; Please remove the dependency on having "seconds" in the disc length regular expression. From freedb.org spec: After the offset list, the following string should appear: "# Disc length: N" where the number of seconds in the CD's play length is substituted for "N". The number of seconds should be computed by dividing the total number of 1/75th second frames in the CD by 75 and truncating any remainder. This number may not be rounded. Any string, such as "seconds", may be appended to the line provided there's at least one white space between the amount of seconds and the string. An application must be able to parse the line correctly at all times. Here is an example where this is occurring. # Track frame offsets: # 150 # 17315 # 34360 # 49672 # 67535 # 87722 # 108890 # 126332 # 144770 # 160855 # 177757 # 197572 # 214570 # 231162 # 248235 # 264310 # 280677 # 299167 # # Disc length: 4156 # # Revision: 5 # Processed by: cddbd v1.5PL2 Copyright (c) Steve Scherf et al. # Submitted via: ExactAudioCopy v0.95a4 # Normalized: r4:DSETVAR1 # DISCID=f7103a12 DTITLE=Various / MTV2 Handpicked