This is for desparate people like me, who own thousands of mp3s with no other info than artist and title name known.
After nearly 2 weeks of development my 2nd, and much more promising attempt to incoorporate the ability to search for multiple songs on AMG into mp3tag has reached beta stage.
Multiple song search can't be archieved with mp3tag's internal tools so I had to switch to external ones.
What this is:
This is a Perl script that uses csv files to export/import tags from and to mp3tag. It searches AMG for the artist; browses the artist's song list for the song; the song's details for the album (selected by string comparison, or if no album info present by release date) and the album details for the track number. All choices are based on a fuzzy string compare function with seperately comfigurable accuracy thresholds. If no matching song is found an error message including the name of the best match is returned in the Comment tag. The script is also capable to store all downloaded webpages in a local hdd cache which greatly improves speed when searching for multiple songs of the same artist.
The script has been designed to search for single songs, but it should be able to find whole albums too. Besides it shouldn't be too difficult to rewrite the script to search for other information or even to search other websites.
Retrieved tags:
Artist, Title, Album, Track, Year,
Album Rating, Composer, Publisher, Type, Genre, Style, Mood,
Theme, Comment (AMG Album ID or Script Errormsg),
CoverUrl, ArtistAcc (accuracy of artist match),
TitleAcc (accuracy of title match), Duration
Usage:
-
Export the tags of the songs to be searched in a semicolon separated list with the provided export script (beware of semicolons or newlines in the tags!)
-
Run the Perl script to do a song by song search on www.allmusic.com.
(type 'perl AMG_Artist-Song_Serch.pl ' in a command shell)
To run the script you will need a recent version of Perl and the additional Perl packages String-Compare and Text-Trim.
Optional: adjust the script's settings by editing it with a text editor. -
Import the tags again using textfile to tag import and following format string (without newlines):
%Album Rating%;%Composer%;%Publisher%;%Type%;%Genre%;%Style%;
%Mood%;%Theme%;%Comment%;%CoverUrl%;%ArtistAcc%;%TitleAcc%;%Duration%
(replace the tags you don't want with %dummy%)
Known issues:
No real support for covers (the script gets the urls, but it doesn't download the covers). To really get the covers you could use a tool like wget combined with a mp3tag export script.
The script is a little picky with typos in the tags.
The tags are always exported ordered by filename.
Comments, improvements and bug reports are always welcome.
mfG.
Stef
AMG_Artist_Song_Search.zip (11.7 KB)
