I think you'll find that digging thorough the audio_getid3.module in the audio module would be a good source for code for dealing with getid3. i've got a couple of years worth of time in dealing with it and i'd hate to see you duplicate it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Title: steal lots of code from audio_getid3 » Steal lots of code from audio_getid3
Version: » 5.x-1.0
Priority: Normal » Critical

Audio_getid3.module assisted greatly when working on this. Is there anything else that could be abstracted away from audio_getid3.module that would help other modules using GetID3?

RobLoach’s picture

Title: Steal lots of code from audio_getid3 » Switch to Libraries API?
Version: 5.x-1.0 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Moving the GetID3 module over to Libraries would allow us to easily change the path..... Otherwise I think we should close this issue.

drewish’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Postponed

Libraries still needs work. They don't have a stable release so I'm not in any hurry to migrate to it.

hswong3i’s picture

Title: Switch to Libraries API? » Improve getID3() as installation profile and Library API friendly
Assigned: Unassigned » hswong3i
Category: task » bug
Priority: Normal » Major
Status: Postponed » Needs review
FileSize
10 KB

getID3() with Drupal 7.x Library API integration. This will also works within installation profile, and able to auto detect the default value of getID3 library path. Fully tested with Drupal 7.x installation profile development.

Moreover, this patch also simplify some dummy error message handling, plus coding style cleanup with coder.module.

Finally, it also synchronize coding style with that of patching colorbox.module with Drupal 7.x Library API support (http://drupal.org/node/989590).

JohnAlbin’s picture

Title: Improve getID3() as installation profile and Library API friendly » Switch to Libraries API
Status: Needs review » Needs work

I committed some of the comments and the t() -> st() fix in the .install file. Thanks!

However, I don't understand why you haven't fully ported getID3() to Libraries API. The patch above only uses the libraries_get_path() function if the the Libraries API is installed. The patch doesn't define any of its hooks or declare it as a dependency.

hswong3i’s picture

Status: Needs work » Needs review
FileSize
8.79 KB

This is because during installation libraries API may not yet successfully load in and so if we call it directly, the call will be failed. Therefore we need to manually include libraries.module.

On the other hand, libraries API just give a hand for us to figure out the correct path of library, and it is only useful IF user are not placing the files under module's path; besides this, nothing at all. So I would like to suggest NOT with enforced dependency with libraries API since it is not a most ;-)

Patch reroll via GIT 7.x-1.x.

ericduran’s picture

Status: Needs review » Needs work

Curious is this something people are still interested in?

Personally I think it's a good idea.

That being said this patch needs work.

It seems like this was written before libraries-7.x-2.0

mglaman’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
5.41 KB

Here is patch migrating to use Libraries 2.x. I have this implemented in my custom module, which I utilized since I did not have immediate time to write patch here for.

mglaman’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Assigned: hswong3i » Unassigned

Moving this to 7.x-2.x It can be marked as a patch to be back ported.

  • mglaman committed 54265e3 on 7.x-2.x
    Issue #173616 by hswong3i, mglaman | drewish: Fixed Switch to Libraries...
mglaman’s picture

Category: Bug report » Feature request
Status: Needs review » Patch (to be ported)
FileSize
9.27 KB

Here is a patch with a diff of the 7.x-2.x Libraries implementation to 7.x-1.x.

mglaman’s picture

Linking to 2.0 release plan