Is it possible to get ID3 tags from an mp3 file by pods?

0

Hi, me again. If you don't want to read situation explanation, just skip to the questions.

I'm doing a discography section with pods, it is nearly finished - the last thing to do is a tracklist for every release, and here i stuck. I'm newbie with all php/css/etc etc stuff, so i don't see rational solutions sometimes, and also can't pull php/js code out of some plugin. I upload previews for every release, but then their names are converted, so i can't pull out filename as a tracklist unit - i need to build up a tracklist with items that will load uploaded files into player on click (that's work for javascript), and i want to build up names of those items from ID3 tags (this is what i want to get with pods).

So the first question is - can i somehow pull out id3 tags of an mp3 file inside the pod directly by CMS Pods? Question can be rephrased as this - does file column contain anything except for array of filepathes, and if yes, can i use this anything to pull out mp3's id3 tags?

The second question is - can pods file column provide me enough information to pull out tags some other way? (I just want to confirm that filepath should be ok to pull them out somehow, and i should start looking in that way)

I know that most possibly i can achieve the same effect with helpers, but i don't want to have more columns than i already have, and they won't be so flexible.

asked Jun 26 '10 at 5:51

Fike

208

add comment
enter at least 15 characters

2 Answers

1

You'll need an external PHP library to extract id3 tags from a file. Try using something like this:

http://getid3.sourceforge.net/

I believe all you need to supply to a library function like this is a valid file path to an audio file.

answered Jun 26 '10 at 8:29

clarinetlord

456

add comment
enter at least 15 characters
0

That's sad, i already have ton of code and files included in theme and hoped there is more simple way. I'll try that one, thanks.

Also, if someone will encounter same probem - i've found id3_get _tag() function, but it needs to be installed first, and i don't know yet if my hoster will do this.

answered Jun 26 '10 at 10:36

Fike

208

edited Jun 26 '10 at 10:37

add comment
enter at least 15 characters