[1.7.8b1] Where is the letter in tags ID3v2

Locked
asid
User
Posts: 1
Joined: Wed Jan 24, 2007 7:56 am

[1.7.8b1] Where is the letter in tags ID3v2

Post by asid » Wed Jan 24, 2007 8:43 am

Ok. Take a look
Original line is:
"(feat. Elephant Man, Busta Rhymes & Ying Yang Twins )" for lines and "Super Rap" for "genre" and 2002 for "year"
The trouble is in some tags v2.3(like "encoded_by", "copyright_message", "original_artist", "composer", "year", "album", "band", "genre", "artist", "title") last letter was kicked out from string. And after all we have
this sh*t:
2002 => 200
Super Rap => Super Ra
(feat. Elephant Man, Busta Rhymes & Ying Yang Twins ) => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
this is output:

Code: Select all

[GETID3_VERSION] => 1.7.8b1
[tags_html] => Array ( 
    [id3v2] => Array ( 
        [encoded_by] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [copyright_message] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [original_artist] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [composer] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [comments] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins)
        [year] => 200
        [album] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [band] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [url_user] => (feat. Elephant Man, Busta Rhymes & Ying Yang twins)
        [genre] => Super Ra
        [artist] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
        [title] => (feat. Elephant Man, Busta Rhymes & Ying Yang Twins
    ) 
)
but i find that in
[id3v2] => [TCOP](copyright_message)
or in
[id3v2] => [TENC](encoded_by)
or in
[id3v2] => [TOPE](original_artist)
etc
we have in key [date] some "??" chars before our string.
check it out:

Code: Select all

[TALB] => Array ( [0] => Array ( 
           [frame_name] => TALB 
           [data] => ��(feat. Elephant Man, Busta Rhymes & Ying Yang twins)
In output hash we haven't any errors or warnings so i ask you for help me(us) to fix this sticky bug! PLEASEEEE!!!!!

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Jan 24, 2007 8:54 am

Looks like there is a bug in ['comments_html'].
As a quick bugfix now, try using ['comments'] (and send proper charset in http header).

cliff
User
Posts: 2
Joined: Sat Feb 10, 2007 5:09 am
Location: Swansea

I have fixed the bug

Post by cliff » Sat Feb 10, 2007 5:29 am

You must edit the file "module.tag.id3v2.php"
on line 646 you must put an equlity sign == double equals sign intead of the single = sign

if ($string[strlen($string)-1] = "\x00")

becomes

if ($string[strlen($string)-1] == "\x00")

That's a nasty little bug! ;)
All the best Cliff.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Sat Feb 10, 2007 9:38 am

Nasty indeed.

Thanks for the fix.

drewish
User
Posts: 14
Joined: Fri Jan 13, 2006 7:11 am

new release?

Post by drewish » Sun Aug 12, 2007 12:12 am

it'd be great to get a new release that fixed this...

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Mon Oct 15, 2007 1:31 am

Fix included in v1.7.8b2

Locked