Hello,
I am trying to get the genre name of the id3v1 tags, but I keep getting the ID back :?: .
Would anyone know how to do this properly ?
Currently trying:
@$ThisFileInfo['tags']['id3v1']['genre'][0];
(using the basic demo)
Thanks and Regards,
Andi
Getting genre name of id3v1
-
- getID3() v1 developer
- Posts: 1476
- Joined: Fri May 04, 2001 4:00 pm
- Are you a spambot?: no
- Location: Northern Ontario, Canada
- Contact:
If you're specifically looking for the text genre of the ID3v1 tag, it would be in If you run demo.browse.php you can explore the whole returned structure and figure out where best to pull the values from for your needs.
Code: Select all
@$ThisFileInfo['id3v1']['genre'];
-
- User
- Posts: 18
- Joined: Wed Jun 14, 2006 9:42 pm
id3v2 genre has int value after upgrade to 1.7.7 from 1.7.5
I just upgraded from 1.7.5 --> 1.7.7 and I noticed that a vast majority of my audio files now return a int value for their genre or a combination of int + human readable name. I've linked a full var output from the getid3() results the id3v1 tag looks ok, however the v2 tag includes a (17) in front of the 'Rock' genre. Currently I 'hack' the (\d) out of the front of the genre however this doesn't help with files that _only_ list the int genre value.
Am I doing something wrong?
Full Output
-Karl Vollmer
Ampache Lead Developer
Am I doing something wrong?
Full Output
-Karl Vollmer
Ampache Lead Developer
-
- getID3() v2 developer
- Posts: 445
- Joined: Sun May 04, 2003 2:22 pm
- Location: Holmegaard, Denmark
Re: id3v2 genre has int value after upgrade to 1.7.7 from 1.
Can you host or email a sample file? ah at artemis dot dkvollmerk wrote:I just upgraded from 1.7.5 --> 1.7.7 and I noticed that a vast majority of my audio files now return a int value for their genre or a combination of int + human readable name. I've linked a full var output from the getid3() results the id3v1 tag looks ok, however the v2 tag includes a (17) in front of the 'Rock' genre. Currently I 'hack' the (\d) out of the front of the genre however this doesn't help with files that _only_ list the int genre value.
Am I doing something wrong?
-
- getID3() v2 developer
- Posts: 445
- Joined: Sun May 04, 2003 2:22 pm
- Location: Holmegaard, Denmark
-
- getID3() v2 developer
- Posts: 445
- Joined: Sun May 04, 2003 2:22 pm
- Location: Holmegaard, Denmark