Greetings,

I have a folder on my website in which mp3 files are uploaded at random times. Is it possible, or has anyone out there created a audio node creation which will read mp3 files from a particular folder and automatically create the audio nodes for those files. Something that would run whenever there is a cron job scheduled. I've tried the audio import module, but I'm not sure I understand how it works.

Comments

leoburd’s picture

I'm working on a module called audio_xmlrpc.module that allows the creation of audio entries via XML-RPC. I've also developed a PHP library that is called by cron to upload local audiofiles (together with user information, tags, etc.) to audio_xmlrpc.module.

Although this is probably more than what you are looking for, I believe audio_xmlrpc has all the functionality that you need. It's only been tested on Drupal 4.7, though. Let me know if you would like to try this module, ok?

Leo

toemaz’s picture

Hi Leoburd,

Your comment is very interesting. I would be happy to try out this module and perhaps even help you out with it. Can you tell us how you want to proceed?

thx

toemaz’s picture

Version: 5.x-0.1 » 4.7.x-1.x-dev

In the meantime, I found a record of you xmlrpc module. Is the version attached to this comment http://drupal.org/node/43110#comment-148617 the last version you have?

Where can I find the "upload local audiofiles" module you are speaking about?

drewish’s picture

anthon1, odds are that audio_import will do 90% of what you want. if want to build a cron based import take a look at the station module's archive. it has some code you could use as a starting point. it uses a cron hook to import mp3s and fetch metadata via XMLRPC from a station schedule.

anthon1’s picture

I will try the Station Archive Module, but I am interested in trying the xmlrpc code out. Please send me a copy. I'll check it out and let u know how it works on drupal 5.

Thanks for all the feedback guys.

-Anthony

toemaz’s picture

leoburd’s picture

I've just uploaded the latest version of audio_xmlrpc.module to http://drupal.org/node/43110 ...

Leo

drewish’s picture

anthon1, i wasn't suggestion that the station module was a solution for you, only that, if you were a developer, it would be a good source of sample code because it does a good deal of you described.

drewish’s picture

Status: Active » Fixed

feel free to re-open this if you need more help.

Anonymous’s picture

Status: Fixed » Closed (fixed)