Closed (fixed)
Project:
Audio
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2006 at 07:53 UTC
Updated:
21 May 2006 at 06:18 UTC
Does any know whether it's possible to add an ID3 comment tag to every uploaded mp3?
Comments
Comment #1
drewish commentedyou mean like add some coded to auto-magically write a comment? what version 4.6 or HEAD/4.7?
Comment #2
mediafrenzy commentedYeah, I'd like to automatically add an ID3 comment to each MP3 that is uploaded by one of my users.
I'm a little confused about the whole CVS/HEAD thing... I guess it's 4.6 that I'm using?
My audio module has this at the top?
$Id: audio.module,v 1.32 2006/01/13 08:00:20 drewish Exp $
Is this sort of thing possible? Complicated?
Cheers
Comment #3
drewish commentedthat looks like an older version of the 4.6 branch. what version of Drupal are you using though? i'm assuming 4.6?
if you're down to hack the module you could just edit the audio_insert() method to set the comment before the id3 tags are saved...
Comment #4
mediafrenzy commentedYes drupal version 4.6
If I could get a few pointers (or even a handy code snippet ;) I could try changing the module a little...
Comment #5
drewish commentedessentially all you'd need to do is add some code to audio_insert() that set the desired comment into
$node->audio['comment']before the values were added to the database and then the file.humm, now that i'm looking at audio_insert() i've noticed that, unlike audio_update(), it doesn't call audio_write_ID3tags(). that may be a bug... anyone like to comment? colin?
Comment #6
drewish commented