Changeset 30 in flacrip for trunk/flactrack


Ignore:
Timestamp:
11/26/14 22:44:08 (10 years ago)
Author:
peter
Message:

Added a tags/notags switch to flactrack to control whether to tag the MP3s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flactrack

    r17 r30  
    1717use Text::Unidecode; 
    1818 
     19# default to using tags 
     20my $TAGS = 1; 
     21 
    1922GetOptions( 
    2023    'D=s' => \my %TRACKS, 
     
    2427    'dir|d=s' => \my $DIRECTORY, 
    2528    'ascii-tags' => \my $ASCII_TAGS, 
     29    'tags!' => \$TAGS, 
    2630); 
    2731 
     
    3842# for getting track metadata from MusicBrainz 
    3943my $info; 
    40 if ($ALL || $TYPE eq 'mp3') { 
     44if ($ALL || ($TYPE eq 'mp3' && $TAGS)) { 
    4145    (my $properties_file = $FLAC_FILE) =~ s/\.flac$/.properties/; 
    4246    if (-e $properties_file) { 
Note: See TracChangeset for help on using the changeset viewer.