I'm using Drupal 5.14, Audio 5.x-1.4 and getID3 version 1.7.7. I am attempting an Audio Import of MP3 files.

Unlike all of the other ID3v2 fields I have tested so far, the comment field does not get imported. The ID3v1 comment field does get imported.

Is this a known issue? Would this even an issue with the Audio module at all?

I tried getID3 version 1.7.8-b3 and it just crashes the Audio module on import.

Before I jump into trying to trace this problem out, I thought I would ask first.

Comments

dpearcemn’s picture

Further information:

Using an MP3 file with only ID3v2 tags, all of the ID3v2 tags I have tested import properly except for the comments field. (If I have an ID3v1 comments field, it will import.)

Using the demo.basic.php demo file from the getID3 1.7.7 package, I can do either of these lines and get the ID3v2 comments field:
echo '1-'.@$ThisFileInfo['tags']['id3v2']['comments'][0].'
';
echo '2-'.@$ThisFileInfo['comments_html']['comments'][0].'
';

This would indicate to me that the getID3 code is working properly. I think.

Dave

dpearcemn’s picture

Part of the problem is the ID3v1 comment field is called "comment" (singular). The ID3v2 field is called "comments" (plural).

The getID3 code can read the ID3v2 "comments" field, but can't write the comments" field. I get this error: "ID3v2: Skipping "COMMENTS" because cannot match it to a known ID3v2 frame type"

So the problem may be a getid3 code issue. Still working on it.

Dave

drewish’s picture

ah, interesting.

dpearcemn’s picture

Status: Active » Closed (fixed)

Since the problem appears to be caused by the getID3 code, I'm am going to close this support request.

For people who may stumble on this request in the following decades, I shall restate what I found out:
1) If you define a tag (in Audio Settings, Metadata tags) called "comment" (singular), you will get the ID3v1 comment tag.
2) If you define a tag (in Audio Settings, Metadata tags) called "comments" (plural), you will get the ID3v2 comments tag.
3) If you flag the ID3v2 "Comments" field to be "Written to file", you will receive an error message.

For reference, if you have a tag defined called "title", the ID3v1 tag called title will be loaded. However if there is an ID3v2 tag called title available, the ID3v1 tag will be used instead.

Enjoy.

Dave