Changeset 29 in flacrip for trunk


Ignore:
Timestamp:
11/05/14 01:06:55 (10 years ago)
Author:
peter
Message:
  • added types to the attributes in the Tracks and Ripper classes
  • removed get_cuesheet from the list of mathods handled by the Tracks class for the Ripper class
Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Ripper.pm

    r28 r29  
    99use File::Copy; 
    1010 
    11 has device => ( is => 'rw' ); 
     11has device => ( 
     12    is  => 'rw', 
     13    isa => 'Str', 
     14); 
    1215has tracks => (  
    13     is => 'rw', 
    14     handles => [qw{read_disc has_tracks get_cuesheet}], 
     16    is      => 'rw', 
     17    isa     => 'Tracks', 
     18    handles => [qw{read_disc has_tracks}], 
    1519); 
    1620 
     
    3640    # encode + cuesheet 
    3741    open my $CUE, "> $cue_file"; 
    38     print $CUE $self->get_cuesheet; 
     42    print $CUE $self->tracks->get_cuesheet; 
    3943    close $CUE; 
    4044    system 'flac', '-o', $flac_file, '--cuesheet', $cue_file, $wav_file; 
  • trunk/lib/Tracks.pm

    r28 r29  
    2121has tracks => ( 
    2222    is      => 'rw', 
     23    isa     => 'ArrayRef[HashRef]', 
    2324    default => sub { [] }, 
    2425); 
     
    2627has discid => ( 
    2728    is       => 'ro', 
     29    isa      => 'Str', 
    2830    builder  => '_calculate_musicbrainz_discid', 
    2931    lazy     => 1, 
Note: See TracChangeset for help on using the changeset viewer.