I am uploading mp3 files using the file field. They display in the playlist as the full filename, but I need to display them at least as the track title specified in the ID3 tag. It's just too messy-looking otherwise.

Any ideas how I'd do this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DrChumley’s picture

I'm stuck on this too. Did you ever figure it out?

fedik’s picture

I did like next:
-install the "media" module
-in file types settinng add field "Title"
-build player using views, where set field "title" for display in playlist

Something like that ;)

drupal a11y’s picture

Where should this option be found: "set field >title< for display in playlist"?

fedik’s picture

look attachment, but first you need create this field in the file_types setting

screen

drupal a11y’s picture

@fedik: Can you please post a screenshot of the complete Views-Display.
I guess there´s something missing in my view cause I can´t get the fields in the views fields-format.

drupal a11y’s picture

Found it ;-)

The relationship "File Usage: File" was missing I guess.
But still I can´t get results.

drupal a11y’s picture

FileSize
49.59 KB

Maybe you can have a look what I made wrong in my views settings:
Views & Files

drupal a11y’s picture

Besides I get the following error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS node_, node.created AS node_created, 'node' AS field_data_field_release_track' at line 1

drupal a11y’s picture

Now it works for me ;-)

I got the filelist with path & title from a node´s file-field with multiple values via views.

Path: private://audio/lowfi/02_wangu_ft._tony_allen__og_spiritual_godess.mp3
Title:
Wangu ft. Tony Allen & OG Spirit Godess
Path: private://audio/lowfi/05_bailalo_ft._cleydys_villalon_0.mp3
Title:
Bailalo ft. Cleydys Villalon
Path: private://audio/lowfi/07_soy_como_soy_ft._cleydys_villalon_0.mp3
Title:
Soy Como Soy ft. Cleydys Villalon
Path: private://audio/lowfi/01_intro_by_cleydys_villalon_1.mp3
Title:
Intro by Cleydys Villalon

drupal a11y’s picture

FileSize
40.18 KB

My views-settings:
Views & Files

drupal a11y’s picture

I also found out why sometimes there´s the SQL Error with fields.
It only works if the fields are displayed with the "(file) File"-Prefix.

drupal a11y’s picture

FileSize
89.43 KB

Finally my solution I found out by a mistake which works now nice:
Views & jPlayer

drett’s picture

Thanks for this info. Really useful. I know this thread is old, but I'm having trouble with the very first step of this process--making id3 data available to Views. I currently have the getid3, media, and jplayer modules installed. How did you set up your file types to use that data?

fedik’s picture

in example above the titles filled manually , not from the id3 tags

drett’s picture

Ok, thanks. That's what I suspected. Doesn't seem like it's possible at the moment to use id3 with media module and/or Views.

rolkos’s picture

old_toby’s picture

Assigned: Unassigned » old_toby
Status: Active » Needs review
FileSize
1.37 KB

Added getID3()-Support
Falls back to the filename (without extension) when no title is set.

old_toby’s picture

Component: Documentation » Code
proweb.ua’s picture

Issue summary: View changes
FileSize
1.19 KB

For:
jPlayer 7.x-2.0-beta1+22-dev
getID3() 7.x-2.0-beta3

Artist - Song title