| 1 |
audio_external.module
|
| 2 |
By James Andres
|
| 3 |
|
| 4 |
INSTALLATION:
|
| 5 |
Just turn it on :-)
|
| 6 |
|
| 7 |
USAGE:
|
| 8 |
Once the module is turned on, it should add an extra field to the audio
|
| 9 |
form. Use that new field, remote URL, to create audio nodes that don't
|
| 10 |
actually have an attached upload but are entirely linked to a remote
|
| 11 |
audio file.
|
| 12 |
|
| 13 |
ADVANCED USAGE:
|
| 14 |
This module provides a few API methods that other modules might find
|
| 15 |
useful. They are:
|
| 16 |
* _audio_external_get_remote_id3()
|
| 17 |
Get ID3 tags from a remote URL.
|
| 18 |
* curl_get_attributes()
|
| 19 |
Get's all kinds of useful information about
|
| 20 |
a remote file, including: file size, mime type, file name.
|
| 21 |
* url_exists()
|
| 22 |
Handy helper function that let's you know if a URL will return a 40X
|
| 23 |
error.
|
| 24 |
* audio_api_insert_remote_file()
|
| 25 |
Same as audio_api_insert(), except for remote files.
|
| 26 |
* audio_external_is_duplicate()
|
| 27 |
VERY handy function that figures out if a remote MP3 is already in the
|
| 28 |
database. Uses some fuzzy-logic to find similar files.
|
| 29 |
* _get_playtime_string() and _get_length_as_seconds()
|
| 30 |
Helper functions for dealing with playtime calculations.
|
| 31 |
|
| 32 |
CONTACT:
|
| 33 |
If you have any questions, feel free to contact me on Drupal.org at
|
| 34 |
http://drupal.org/user/33827.
|