Hello Community.

I try to get metadata of mp3 files with Getid3 module in views. For this I created a relationship to my content file.

When I add a related field in views like "duration" , the display of the fiels is empty.

When I try with another related field like MIME type it work.

It seems that I can access to all of the metadata of the primary array but nothing of the sub arrays ? I am sure the metadata exists, I can see it with Devel.

Is every one can help me and maybe the Community.

Thanks in advance.

Jérôme

GetId3 wiews

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

desks created an issue. See original summary.

elaman’s picture

Component: User interface » Code
Assigned: jcligny » Unassigned
Category: Support request » Bug report

I can confirm this issue. When displaying data through the relationship, you will get this error:

Notice: Undefined property: stdClass::$fid in getid3_metadata_handler->render() (line 14 of
/sites/all/modules/getid3/includes/handlers/getid3_metadata_handler.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of
/includes/entity.inc).
Notice: Trying to get property of non-object in getid3_metadata_handler->render() (line 15 of
/sites/all/modules/getid3/includes/handlers/getid3_metadata_handler.inc).

elaman’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Status: Active » Closed (duplicate)

This issue is a symptom of unfinished views integration: #2333077: getID3 shouldn't modify weight.
I will mark it as a duplicate and start posting patches in parent issue.

mglaman’s picture

Status: Closed (duplicate) » Active

Please keep this open. That is a closed ticket.

braindrift’s picture

Hi,

here is a patch that allows to access the file metadata via a relationship.

braindrift’s picture

Status: Active » Needs review
Rob_Feature’s picture

I was having this same issue...applied the patch and now I can get duration from my relationship-based file. Thanks!

  • mglaman committed 4515592 on 7.x-2.x authored by braindrift
    Issue #2612060 by braindrift, jcligny, Elaman, Rob_Feature: Views...
mglaman’s picture

Status: Needs review » Fixed

Thanks, everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.