Hi,

I have been trying to use MP3::Tag to change tags before I import
files into iTunes. Even though MP3::Tags seems to update the tags,
iTunes does not seem to notice and shows old tags.

So, is there a way to delete all the tags in an mp3, regardless of the
version of the tags? I tried the following code for removing ID3v2
tags which does not seem to work:

use MP3::Tag;
use strict;
use warnings;

MP3::Tag-> config("id3v23_unsync",0);
my $filename = "01 Living Planet_ Environment Matter.mp3";
my $mp3 = MP3::Tag->new($filename);
$mp3->get_tags;
if (exists $mp3->{ID3v2}) {
      $mp3->{ID3v2}->remove_tag;
}
$mp3->close();

Regards,
Evyn


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to