Legend:
- Unmodified
- Added
- Removed
-
trunk/mbz
r31 r40 12 12 13 13 GetOptions( 14 'flac=s' =>\my $FLAC_FILE, 14 'flac=s' => \my $FLAC_FILE, 15 'barcode=s' => \my $BARCODE, 15 16 'get-release-id' => \my $GET_RELEASE_ID, 16 'xml' =>\my $GET_XML,17 'xml' => \my $GET_XML, 17 18 ); 18 19 19 20 my $discid; 21 my $barcode; 20 22 21 23 if ($FLAC_FILE) { 22 $discid = DiscFlacFile->new({ file => $FLAC_FILE })->discid; 24 my $flac_disc = DiscFlacFile->new({ file => $FLAC_FILE }); 25 $discid = $flac_disc->discid; 26 $barcode = $flac_disc->barcode; 23 27 } else { 24 $discid = shift; 28 $discid = shift; 29 $barcode = $BARCODE; 25 30 } 26 31 … … 35 40 36 41 # otherwise, do the full parsing of the data 37 my $info = get_musicbrainz_info($discid); 42 my $info = get_musicbrainz_info({ 43 discid => $discid, 44 barcode => $barcode, 45 }); 38 46 39 47 exit unless $info;
Note: See TracChangeset
for help on using the changeset viewer.