id3v2: getid3 returns 'track' field, but will not write it

Locked
gokusandwich
User
Posts: 16
Joined: Wed Jan 26, 2005 12:53 am

id3v2: getid3 returns 'track' field, but will not write it

Post by gokusandwich » Wed Jan 26, 2005 1:05 am

hello.

first of all, i am using getid3 version 1.7.0. i have checked the changelog and found nothing concerning a possible fix for this small glitch.

i am not really sure if this is a bug, but i don't see why it would make sense for it to work this way. what is happening is this:
i call getid3->analyze() to obtain information on an mp3. the mp3 contains an id3v2 tag, which id3 returns as $return_var['tags']['id3v2']. one of the fields under this id3v2 array segment is 'track', rather than 'tracknumber'. *however*, when i try to write and id3v2 tag called 'track', i get the warning:
"ID3v2: Skipping "TRACK" because cannot match it to a known ID3v2 frame type".

so, basically, it is no big deal to just change my input array to use 'tracknumber' rather than 'track', but this is not consistent, and i am thinking it should be fixed in the actual getid3() library.

thanks!

yasuo
User
Posts: 4
Joined: Sun Oct 02, 2016 1:27 pm
Are you a spambot?: no

Re: id3v2: getid3 returns 'track' field, but will not write

Post by yasuo » Sun Oct 02, 2016 4:31 pm

same problem with the TEXT field wich contains

[text] => Array
(
[Encoded by] => iTunes 12.3.2.35
[Band] => bla bla
)

how did you solve this issue?

gokusandwich
User
Posts: 16
Joined: Wed Jan 26, 2005 12:53 am

Re: id3v2: getid3 returns 'track' field, but will not write

Post by gokusandwich » Sun Oct 02, 2016 7:44 pm

Given it has been more than ten years, I unfortunately do not remember how (or if) I worked around this problem.

yasuo
User
Posts: 4
Joined: Sun Oct 02, 2016 1:27 pm
Are you a spambot?: no

Re: id3v2: getid3 returns 'track' field, but will not write

Post by yasuo » Sun Oct 02, 2016 10:45 pm

worth a try ^^

Locked