Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set tags in iTunes based Last.fm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set tags in iTunes based Last.fm
Authored by: dfbills on Aug 13, '10 08:25:39AM

I'm not able to get this to work, even after installing wget. I think there are some errors in the wget statment.

---
-d



[ Reply to This | # ]
Set tags in iTunes based Last.fm
Authored by: karog on Aug 13, '10 08:48:29AM
dfbills, since $TITLE is the artist, it may have spaces in it which would cause problems. Add quotes as shown here:

wget -q "http://last.fm/music/$TITLE/+tags"

Also, the "exec" before "osascript" (in 2 places) is unnecessary.

Edited on Aug 13, '10 08:52:52AM by karog


[ Reply to This | # ]
Set tags in iTunes based Last.fm
Authored by: dfbills on Sep 08, '10 07:55:18AM

Thanks, this one really seems to be giving me trouble. Seems there are two more issues:

1. The extract.txt is not being created properly. This can be addressed by adding a 'touch extract.txt'

2. The sed string is failing. I'm not able to fix this.

My errrors:


Fetching tags for: Barenaked Ladies
./set_tags.sh: line 13: extract.txt: command not found
awk: can't open file extract.txt
source line number 1
sed: 1: "s/</a>gt;//g": bad flag in substitute command: '/'
./set_tags.sh: line 16: extract.txt: command not found
Setting tags to :
12:45: execution error: cat: extract.txt: No such file or directory (1)
rm: extract.txt: No such file or directory

---
-d



[ Reply to This | # ]