Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Ripper.pm
r28 r29 9 9 use File::Copy; 10 10 11 has device => ( is => 'rw' ); 11 has device => ( 12 is => 'rw', 13 isa => 'Str', 14 ); 12 15 has 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}], 15 19 ); 16 20 … … 36 40 # encode + cuesheet 37 41 open my $CUE, "> $cue_file"; 38 print $CUE $self-> get_cuesheet;42 print $CUE $self->tracks->get_cuesheet; 39 43 close $CUE; 40 44 system 'flac', '-o', $flac_file, '--cuesheet', $cue_file, $wav_file; -
trunk/lib/Tracks.pm
r28 r29 21 21 has tracks => ( 22 22 is => 'rw', 23 isa => 'ArrayRef[HashRef]', 23 24 default => sub { [] }, 24 25 ); … … 26 27 has discid => ( 27 28 is => 'ro', 29 isa => 'Str', 28 30 builder => '_calculate_musicbrainz_discid', 29 31 lazy => 1,
Note: See TracChangeset
for help on using the changeset viewer.