How to remove ID3v1?

The place for "I can't figure out how to..." questions.
Post Reply
ebunny
User
Posts: 2
Joined: Sat Apr 08, 2006 4:46 pm

How to remove ID3v1?

Post by ebunny » Sun Apr 09, 2006 12:05 pm

Hi,

I have songs that currently have ID3v1 and ID3v2 tags and I want to remove ID3v1 tags and leave ID3v2 tags unchaged. So how do I do that?

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Sun Apr 09, 2006 7:50 pm

Code: Select all

include_once('write.id3v1.php');
$id3v1_writer = new getid3_write_id3v1;
$id3v1_writer->filename = $filename;
if (($success = $id3v1_writer->RemoveID3v1()) === false) {
	echo 'FAILED: *'.trim(implode("\n* ", $id3v1_writer->errors));
}

ebunny
User
Posts: 2
Joined: Sat Apr 08, 2006 4:46 pm

Post by ebunny » Tue Apr 11, 2006 1:31 pm

I'm still having trouble removing ID3v1 tags. I keep geting errors:

Fatal error: Undefined class name 'getid3_lib' in /home/...

and when I include getid3.lib.php to get getid3_lib class I have

Notice: Use of undefined constant GETID3_INCLUDEPATH...

So what am I doing wrong here?

Post Reply