Changeset 28 in flacrip for trunk


Ignore:
Timestamp:
11/03/14 23:15:34 (10 years ago)
Author:
peter
Message:

made discid an attribute of the Tracks class, instead of a method

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Ripper.pm

    r26 r28  
    4242 
    4343    # MusicBrainz discid metadata 
    44     my $discid = $self->tracks->get_musicbrainz_discid; 
     44    my $discid = $self->tracks->discid; 
    4545 
    4646    # copy to permanent location 
  • trunk/lib/Tracks.pm

    r26 r28  
    2222    is      => 'rw', 
    2323    default => sub { [] }, 
     24); 
     25 
     26has discid => ( 
     27    is       => 'ro', 
     28    builder  => '_calculate_musicbrainz_discid', 
     29    lazy     => 1, 
     30    init_arg => undef, 
    2431); 
    2532 
     
    131138 
    132139# https://musicbrainz.org/doc/Disc_ID_Calculation 
    133 sub get_musicbrainz_discid { 
     140sub _calculate_musicbrainz_discid { 
    134141    my ($self) = @_; 
    135142 
Note: See TracChangeset for help on using the changeset viewer.