1. Reading we have:
but writing we have:
The main reason I think this is such a problem is if a person wants to add a custom tag thay should be able to read the tags, assign the tags to write, ie:
$arr = $getID3->analyze($file);
$TagData = $arr['tags']['id3v2'];
$tagwriter->tag_data = $TagData;
2. When writing it should error if you pass a bogus tag instead of ignore it and have $tagwriter->WriteTags() return true.
$TagData['album'] = 'I get used';
$TagData['ImAHappyTag'] = 'happy in oblivion';
$TagData['EveryOneIgnoresMe'] = 'Like I don't exist';
Successfully wrote tags
3. setting $tagwriter->overwrite_tags = true; does not work, it just breaks it with the following error message:
Failed to write tag! WriteID3v2() failed with message(s):<PRE><UL><LI>Frame not allowed in ID3v2.3: ALBUM</LI><LI>Frame "ALBUM" is NOT allowed</LI><LI>$this->GenerateID3v2FrameData() failed for "ALBUM"</LI><LI>$this->GenerateID3v2Tag() failed</LI></UL></PRE>
$TagData contains ONLY the following (album is not set, only in the file itself):
[user_text] => Array
 => 8d38c4bc679ec1719036648711c223ec
If I strip all tags in the mp3 first then it is successful. It would make sense that if the data passed was the same OR in the case of album not specified that it would leave the original value.
Think you found a bug in getID3()? Post here with details.
1 post •Page 1 of 1
- Joined:Sun Feb 11, 2007 12:12 am
- Location:So Ca