Page 1 of 1

unsynchronised lyrics

Posted: Thu Oct 04, 2007 4:57 pm
by larryseyer
I LOVE getid3! (using getid3-1.7.7)

This has saved me TONS of work trying to do what I'm trying to do.

I've gotten almost everything to work just great... I can read all the tags and format them the way that I need to.

However, it seems that no matter what I do, and no matter what options I choose, I cannot read 'USLT' Lyrics from mp3 files.

I am positive that the lyrics are there since I've confirmed this by both reading the mp3 file in binary, and also reading it both in 'Tag and Rename' along with 'Itunes'... So the lyrics are there and appear to be properly formatted.

Here is a link in case you want to test this yourselves:

http://www.larryseyer.com/audio/acimg/test.mp3

However, I cannot seem to be able to read them using getid3!

Here is what I have tried:

$getID3 = new getID3;
$filename = "test.mp3";
$ThisFileInfo = $getID3->analyze($filename);
getid3_lib::CopyTagsToComments($ThisFileInfo);

echo @$ThisFileInfo['id3v2']['USLT'][0]['unsynchronised_lyrics'] . "<br>";
echo @$ThisFileInfo['comments_html']['unsynchronised_lyrics'][0]. "<br>";
echo @$ThisFileInfo['comments']['unsynchronised_lyrics'][0] . "<br>";
echo @$ThisFileInfo['tags']['id3v2']['unsynchronised_lyrics'][0] . "<br>";

And after reading this forum, I also tried:

echo @$ThisFileInfo['id3v2']['USLT'][0]['unsynchronised lyrics'] . "<br>";
echo @$ThisFileInfo['comments_html']['unsynchronised lyrics'][0]. "<br>";
echo @$ThisFileInfo['comments']['unsynchronised lyrics'][0] . "<br>";
echo @$ThisFileInfo['tags']['id3v2']['unsynchronised lyrics'][0] . "<br>";

(with the space in there)

Nothing seems to work.

Anyone know what I'm doing wrong?

Thanks!

Larry

Posted: Thu Oct 04, 2007 5:06 pm
by Allan Hansen
Do a

print "<pre>";
print_r($ThisFileInfo);

Posted: Thu Oct 04, 2007 5:17 pm
by larryseyer
Allan Hansen wrote:Do a

print "<pre>";
print_r($ThisFileInfo);
You, my friend, are a genius!

I was able to figure out that the tag is "unsynchronised_lyric" and NOT "unsynchronised_lyrics".

That was all I was doing wrong.

Thanks for your quick response and your invaluable help!

Best to you!

Larry