Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Id3 Tag Correction and Downloading  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: help file
Class: Id3 Tag Correction and Downloading
Correct ID3 tags of music stored in a database
Author: By
Last change: -added a comment for retrieving artist biography
Date: 6 years ago
Size: 2,454 bytes
 

Contents

Class file image Download
Made by: Nadir Latif (nadir.latif@yahoo.com)

Dependencies: 

-mp3 management script written Nadir Latif (http://www.phpclasses.org/browse/package/4018.html).
-nusoap script (http://sourceforge.net/projects/nusoap/).

This script uses web services to correct id3 tags and download lyrics, album art and information about the artist. The script uses the database of meta tags that is used by the mp3 management script.

1) Usage:

-Enter database configuration settings in config.inc.php.
-Set the variable $path_symbol to "/" if running on linux or "\" if running on windows.
-Enter email of user in set_error_handling.php. All php errors except for notices will be sent to this email address.
-Set the variable $album_art_folder to the location of the album art folder. The downloaded album art images will be saved to this folder.
-To run the script directly from the browser instead of as a background task, set $is_debug variable to 1 and comment line 4. This will display error messages on screen instead of emailing the error.
-Copy the files to the directory of a web server and run index.php.

2) What does this sctipt do?

Most mp3s contain missing or misspelled id3 tags. For sites that host thousands of mp3s, it is not feasible to correct these tags manually. This script tries to correct misspelled tags and fill in missing tags. It also retrieves album art, lyrics and additional artist information. The script retrieves all rows from the mp_id3_tags table (provided by the mp3 management script)that contain mp3 meta data such as album,title,artist etc. For each row the script tries to correct the tags by using the web serivces provided by audioscrobbler.com. The script also downloads album art, lyrics and additional artist information such as list of similar artists, list of top albums by an artist, list of top tracks by an artist, artist biography and artist genre. The album art is saved to a folder, while the rest of the information is saved to database. The script makes one call to a web service per second in accordance with the policy of audioscrobbler.com,lyricsfly.com and lyricwiki.

3)List of files:

a)index.php (initial file)
b)correct_tags.php (main program file)
c)config.inc.php (database configuration file)
d)set_error_handling.php (used to set the error handler to a user defined function)
e)readme.txt (help file)

-Feel free to contact me for any assistance regarding this script.