Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG membership <EMAIL:PROTECTED>
- Subject: [MLUG] allmusic trick for storing CD info
- From: Mike Miller <EMAIL:PROTECTED>
- Date: Sun, 15 Apr 2007 13:35:32 -0500 (CDT)
- Delivery-date: Sun, 15 Apr 2007 13:36:16 -0500
- Envelope-to: EMAIL:PROTECTED
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
First find your CD on allmusic.com. Example:
http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:kbfqxqugld0e
Then use my little script to make a file called "review.html" which you
store in the directory with your MP3s from your CD.
The script is this oneliner and I call it "review"
wget -O - "$1" | perl -pe 's#<head>#<head>\n<base href="http://www.allmusic.com/" />#' > review.html
You just do this in the appropriate directory (or move review.html there
later):
review 'http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:kbfqxqugld0e'
So the cool thing about that system is that it stores the text from the
web page in the file, but it adds a "<base href="">" line in the header so
that the links back to allmusic.com work and you can see the album cover,
get the proper CSS, etc.
I'm doing this in Cygwin on Windows (I installed the works). It also
works in Linux, obviously, or any other UNIXy OS if you have both wget and
perl installed.
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members