$parsedFrame['encoding'
] =
$this->
TextEncodingNameLookup($frame_textencoding);
$frame_terminatorpos =
strpos($parsedFrame['data'
], "\x00",
$frame_offset);
$frame_pricepaid =
substr($parsedFrame['data'
],
$frame_offset,
$frame_terminatorpos -
$frame_offset);
$frame_offset =
$frame_terminatorpos +
strlen("\x00"
);
$parsedFrame['pricepaid'
]['currencyid'
] =
substr($frame_pricepaid, 0, 3
);
$parsedFrame['pricepaid'
]['currency'
] =
$this->
LookupCurrencyUnits($parsedFrame['pricepaid'
]['currencyid'
]);
$parsedFrame['pricepaid'
]['value'
] =
substr($frame_pricepaid, 3
);
$parsedFrame['purchasedate'
] =
substr($parsedFrame['data'
],
$frame_offset, 8
);
if ($this->
IsValidDateStampString($parsedFrame['purchasedate'
])) { $parsedFrame['purchasedateunix'
] =
mktime (0, 0, 0,
substr($parsedFrame['purchasedate'
], 4, 2
),
substr($parsedFrame['purchasedate'
], 6, 2
),
substr($parsedFrame['purchasedate'
], 0, 4
));
} $frame_offset += 8;
$parsedFrame['seller'
] =
(string) substr($parsedFrame['data'
],
$frame_offset);
$parsedFrame['seller'
] =
$this->
RemoveStringTerminator($parsedFrame['seller'
],
$this->
TextEncodingTerminatorLookup($frame_textencoding));
unset($parsedFrame['data'
]);
} elseif (($id3v2_majorversion >= 3
) && ($parsedFrame['frame_name'
] == 'COMR'
)) { // 4.24 COMR Commercial frame (ID3v2.3+ only)
// There may be more than one 'commercial frame' in a tag,