This forum has been archived. All content is frozen. Please use KDE Discuss instead.

utf-8 id3v2 tags script problem

Tags: None
(comma "," separated)
chunchengch
Registered Member
Posts
2
Karma
0

utf-8 id3v2 tags script problem

Fri Jun 15, 2007 2:20 am
I run the script below, but failed with error message "File  doesn't exist at v2tag.pl line 2.", so how should I do?

#!/usr/bin/perl
die "File $ARGV[0] doesn't exist" unless -f $ARGV[0];
use MP3::Mplib;
my $mp3 = MP3::Mplib->new($ARGV[0]);
my $v2tag = $mp3->get_v2tag;
print "Error writing tags of $ARGV[0]\n" unless $mp3->set_v2tag($v2tag,&UTF8);


this script is used to fix the problem "Amarok is not displaying my utf-8 id3v2 tags properly!"
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: utf-8 id3v2 tags script problem

Fri Jun 15, 2007 7:57 am
This script takes the filename of the mp3 file you wanna correct as an argument.
You are simply not giving it the filename or a wrong filename.
chunchengch
Registered Member
Posts
2
Karma
0

Re: utf-8 id3v2 tags script problem

Fri Jun 15, 2007 8:40 am
Do you mean that I have to correct all my mps files with this script one by one?
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: utf-8 id3v2 tags script problem

Sat Jun 16, 2007 10:33 pm
In its current form: Yes.
But it is rather easy to add a routine that crawls your directories or handles lists of files.
pickarooney w
Registered Member
Posts
11
Karma
0

Re: utf-8 id3v2 tags script problem

Tue Jun 26, 2007 2:18 pm
are there any existing scripts which do it recursively, for the perl-ignorant among us?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]