Legend:
- Unmodified
- Added
- Removed
-
trunk/mbz
r17 r31 9 9 use Getopt::Long; 10 10 use MusicBrainz; 11 use DiscFlacFile; 11 12 12 13 GetOptions( … … 19 20 20 21 if ($FLAC_FILE) { 21 require Audio::FLAC::Header; 22 my $flac = Audio::FLAC::Header->new($FLAC_FILE) or die "Can't read FLAC header from $FLAC_FILE\n"; 23 $discid = $flac->tags('MUSICBRAINZ_DISCID') or die "No MUSICBRAINZ_DISCID tag in $FLAC_FILE\n"; 22 $discid = DiscFlacFile->new({ file => $FLAC_FILE })->discid; 24 23 } else { 25 24 $discid = shift; … … 44 43 } else { 45 44 for my $key (sort keys %{ $info }) { 46 print "$key=$$info{$key}\n" unless ref $info->{$key};45 print "$key=$$info{$key}\n"; 47 46 } 48 47 }
Note: See TracChangeset
for help on using the changeset viewer.