Changeset 10 in flacrip for trunk/MusicBrainz.pm


Ignore:
Timestamp:
02/26/14 14:37:32 (11 years ago)
Author:
peter
Message:
  • if flactrack has the album metadata, generate a directory name using the album's original release date, to make the album directories sort chronologically within artists
  • convert "&" to " and " in name and title strings
  • MusicBrainz retrieves the disc number and total number of discs for multidisc releases
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MusicBrainz.pm

    r9 r10  
    7676    # select the proper medium (important for multidisc releases) 
    7777    my ($medium) = $xpath->findnodes("medium-list/medium[disc-list/disc/\@id='$discid']", $release); 
     78 
     79    # disc position info 
     80    $info{DISCNUMBER} = $xpath->findvalue('position', $medium)->value; 
     81    $info{DISCTOTAL}  = $xpath->findvalue('../@count', $medium)->value; 
    7882 
    7983    #my $ua = LWP::UserAgent->new; 
Note: See TracChangeset for help on using the changeset viewer.