Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Hi,
the code is very simple:
require_once 'Zend/Media/Id3v2.php'; // or using autoload
try {
$id3 = new Zend_Media_Id3v2('Music/top_100_12-12-2011/087 - David Guetta feat. Taio Cruz & Ludacris - Little Bad Girl.mp3');
$title = $id3->tit2->text;
$artist = $id3->tpe1->text;
}
catch (Zend_Media_Id3_Exception $e) {
$title = $dateiname;
$artist = $folder;
}
echo $artist." - ".$title."\n";
but the file is under copyright. please give me an email adress where i can
send it
Original comment by mr.schic...@gmail.com
on 21 Jan 2012 at 5:00
I have now checked your file and it seems that your ID3v2 is not encoded
according to the standard. The SYLT frame is encoded wrongly having the
descriptions without null terminations. The standard says in
http://www.id3.org/d3v2.3.0 for SYLT that strings must be null terminated.
I have made a workaround to the library code so that the code won't hang for
this particular case. It is committed to subversion. Checkout the repository
and try it yourself.
Original comment by svollbehr
on 21 Jan 2012 at 7:47
it is working perfectly, thank you very much!
Original comment by mr.schic...@gmail.com
on 22 Jan 2012 at 2:00
Original comment by svollbehr
on 22 Jan 2012 at 4:21
Original issue reported on code.google.com by
mr.schic...@gmail.com
on 20 Jan 2012 at 9:18