Changeset 17 in flacrip


Ignore:
Timestamp:
10/02/14 09:19:15 (10 years ago)
Author:
peter
Message:

changed MBZ_DISCID to MUSICBRAINZ_DISCID, to match the standard MusicBrainz-Vorbis tag mappings

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/cd2flac

    r1 r17  
    173173# copy to permanent location 
    174174copy($flac_file, $archive_flac); 
    175 system 'metaflac', '--set-tag', "MBZ_DISCID=$discid", $archive_flac; 
     175system 'metaflac', '--set-tag', "MUSICBRAINZ_DISCID=$discid", $archive_flac; 
    176176print "Rip saved as $archive_flac\n"; 
    177177system 'eject', $CD_DEVICE; 
  • trunk/flactrack

    r15 r17  
    4848    } else { 
    4949 
    50         my $discid = $flac->tags('MBZ_DISCID') or warn "No MBZ_DISCID tag in $FLAC_FILE\n" if $flac; 
    51         #TODO: calculate TOC and DISCID from cuesheet if there is no MBZ_DISCID tag present 
     50        my $discid = $flac->tags('MUSICBRAINZ_DISCID') or warn "No MUSICBRAINZ_DISCID tag in $FLAC_FILE\n" if $flac; 
     51        #TODO: calculate TOC and DISCID from cuesheet if there is no MUSICBRAINZ_DISCID tag present 
    5252 
    5353        $info = get_musicbrainz_info($discid); 
  • trunk/lib/MusicBrainz.pm

    r16 r17  
    6868    my %info; 
    6969 
    70     #TODO: deprecate the old MBZ tag name 
    71     $info{MBZ_DISCID} = $discid; 
    7270    $info{MUSICBRAINZ_DISCID} = $discid; 
    7371 
  • trunk/mbz

    r11 r17  
    2121    require Audio::FLAC::Header; 
    2222    my $flac = Audio::FLAC::Header->new($FLAC_FILE) or die "Can't read FLAC header from $FLAC_FILE\n"; 
    23     $discid = $flac->tags('MBZ_DISCID') or die "No MBZ_DISCID tag in $FLAC_FILE\n"; 
     23    $discid = $flac->tags('MUSICBRAINZ_DISCID') or die "No MUSICBRAINZ_DISCID tag in $FLAC_FILE\n"; 
    2424} else { 
    2525    $discid = shift; 
  • trunk/mbz2id3

    r1 r17  
    200200my $flac_file = shift; 
    201201 
    202 my $discid = `metaflac --show-tag MBZ_DISCID $flac_file | cut -d = -f 2`; 
     202my $discid = `metaflac --show-tag MUSICBRAINZ_DISCID $flac_file | cut -d = -f 2`; 
    203203chomp $discid; 
    204204 
Note: See TracChangeset for help on using the changeset viewer.