- #!/usr/bin/perl
- use 5.14.0;
- use strict;
- use warnings;
- my $arg = abs_path($ARGV[0]);
- sub getdirs {
- my @dirs;
- }
- sub getfiles {
- my @files;
- my $fn = "$dn/$_";
- if (/.mp3$/ && -f $fn) {
- }
- }
- }
- foreach my $dn (getdirs($arg)) {
- my @dirs = File::Spec->splitdir( $dn );
- my @tags;
- foreach (1..2) {
- }
- my @files = getfiles($dn);
- foreach my $fn (@files) {
- my $temp = basename($fn);
- $temp =~ s/^1-0*//;
- $temp =~ s/.mp3$//;
- #@write = ( '--artist', "\"$tags[1]\"", '--album', "\"$tags[0]\"", '--song', "\"$split[1]\"", '--track', "\"$split[0]\"" );
- @write = ( "--artist=\"$tags[1]\"", "--album=\"$tags[0]\"", "--song=\"$split[1]\"", "--track=\"$split[0]\"" );
- if ($? != 0) {
- say "Something went wrong with 'mid3v2': $!";
- exit;
- }
- }
- }
add tags script
Posted by Anonymous on Mon 10th Sep 2012 06:34
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.