Make getID3() library location user assignable

mikey_p - May 17, 2007 - 07:43
Project:Media Field
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi, I'm doing some install profile work and trying to figure out a way to make my system easiest to upgrade, and it works much easier if the location of the getid3 lib is user assignable. For example, I try to keep all non-core files to either sites/all, sites/site.domain, or in profiles/profilename. (places where they don't get mixed with core files, such as in /misc.

I've tested the patch and unless the settings are changed at the admin page, it works exactly as it did previously.

-Mike

AttachmentSize
mediafield_0.patch2.12 KB

#1

ARDAS - May 17, 2007 - 08:02
Assigned to:Anonymous» ARDAS

I will review and commit your patch shortly. It looks good at the first site. No problems to have such option.
There were many requests from people who had troubles with locations... which is strange, I thought misc/lib is a good option because Drupal has no special directory for 3d party components so misc/lib looked a good one.

#2

Rob Loach - September 6, 2007 - 18:23

I just contributed the getID3() module, which provides an API to facilitate an installation of getID3. MediaField should move to start using this instead of just assuming that getID3 is installed in drupal/misc/lib/getid3.

The benefits to using this getID3 module is that it abstracts the getID3 functionality away from MediaField, making it accessible by other modules. It also gives additional functionality, including a requirements warning in admin/logs/status when getID3 is not installed, an easy way to include getID3 in other modules via a single call to getid3_load, and (eventually) the ability for the user to change the location where getID3 is installed.

This API is still young, so some additional functionality will become available in the future. I'll send in a patch to MediaField in the next two days which will use this instead of its assuming getID3 is installed in 'misc/lib/getid3'.

#3

Rob Loach - September 6, 2007 - 19:08
Title:Make getid3 lib location user assignable» Make getID3() library location user assignable

This patch will make MediaField use the getID3 Drupal API Module instead of assuming getID3 is installed in drupal/misc/lib/getid3.

AttachmentSize
mediafield.getid3_.patch3.45 KB

#4

Rob Loach - October 9, 2007 - 19:41
Priority:normal» critical

#5

a_c_m - June 26, 2008 - 08:56
Status:patch (code needs review)» patch (code needs work)

Committed to HEAD (http://drupal.org/cvs?commit=123615) with changes due to bug in getId3 see http://drupal.org/node/275151 for details.

#6

a_c_m - June 26, 2008 - 12:01
Priority:critical» normal
Assigned to:ARDAS» Anonymous

#7

a_c_m - August 21, 2008 - 06:52
Status:patch (code needs work)» fixed

#8

Anonymous (not verified) - September 4, 2008 - 07:02
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.