Changeset 31 in flacrip for trunk/lib/Tracks.pm


Ignore:
Timestamp:
11/26/14 22:50:16 (9 years ago)
Author:
peter
Message:
  • mbz uses DiscFlacFile to read the discid from a FLAC file
  • remove the TRACKS array from the returned info hash from get_musicbrainz_info()
  • Tracks::read_flac() can take an Audio::FLAC::Header as its argument instead of a filename
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Tracks.pm

    r29 r31  
    120120    my ($self, $file) = @_; 
    121121 
    122     my $flac = Audio::FLAC::Header->new($file); 
     122    my $flac = ref $file ? $file : Audio::FLAC::Header->new($file); 
    123123    my $cuesheet_lines = $flac->cuesheet; 
    124124    my $CUE = IO::Lines->new($cuesheet_lines); 
Note: See TracChangeset for help on using the changeset viewer.