Page 1 of 1

losing POPM counter on read ID3v2

Posted: Sat Feb 19, 2011 9:05 am
by kevinslist
version: 1.8.4-20110203
problem: the counter field of the POPM frame is not being output because it is being overwritten before returning data.

file: module.tag.id3v2.php
line: 1381

$parsedFrame['data'] =...
$parsedFrame['counter'] =....

at least that fixed for me,
not sure if "writing" tag has same issue, havent made it that far.
thanks for getid3

Re: losing POPM counter on read ID3v2

Posted: Sat Feb 19, 2011 1:25 pm
by James Heinrich
A sample file with a POPM field would be appreciated. Either PM me a link or email a sample file to, please.

Re: losing POPM counter on read ID3v2

Posted: Wed Mar 02, 2011 1:32 pm
by James Heinrich
Fixed as suggested in v1.8.6
A sample file would still be welcome, if anyone has one (or can suggest an application that writes such tags).

Re: losing POPM counter on read ID3v2

Posted: Sat Mar 05, 2011 1:10 pm
by James Heinrich
kevinslist wrote:Banshee media player on linux writes these tags... KID3 is another tagging program where you can add/read the POPM tag and many other id3v2.4 tags, as well as create/read multi value tags using the '|' character

There was another tag losing it's data in a similar matter, I believe the description field of txxx or wxxx, it seemed to be a pattern of some of the additional attributes for some of the tags in id3v2.x

Also, I'm sure your aware and possibly looking at adding it to the v2 of getid3 but fields like album,artist,genre can take multiple values in the data frame of the id3v2.4 tag, with each value seperated by the null char.

I added this to the 'T' frames, starting around line 662 (in my modded version anyway):

Code: Select all

$string = getid3_lib::iconv_fallback($parsedFrame['encoding'], $ThisFileInfo['id3v2']['encoding'], $parsedFrame['data']);
// remove possible terminating \x00 (put by encoding id or software bug)     
if ($string[strlen($string) - 1] == "\x00") {
  $string = substr($string, 0, strlen($string) - 1);
$strings = preg_split('`\x00`', $string, -1, PREG_SPLIT_NO_EMPTY);

foreach($strings as $s){
  $ThisFileInfo['id3v2']['comments'][$parsedFrame['framenameshort']][] = $s;
but should probably be using the TextEncodingTerminatorLookup function