Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #pulling info from loung-radio.com for conky
- #2013 by nlinedesignz@web.de
- #call like ${execi 13 /path/to/loungradio.sh}
- #add ${image ~/.loungeradio -p xx,yy -s 123x123} for albumart
- wget http://www.lounge-radio.com/code/pushed_files/now.html -O ~/loungeradio.html >/dev/null 2>&1 &&
- artist=$(awk '/id="artist"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
- album=$(awk '/id="album"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
- track=$(awk '/id="track"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
- wget "http://www.lounge-radio.com/code/pushed_files/$(awk '/id="covercontainer"/{print}' ~/loungeradio.html | sed -r 's/.*src="(.*)" width=.*/\1/')" -O ~/.loungeradio >/dev/null 2>&1 &&
- echo 'Artist:' $artist;
- echo 'Track:' $track;
- echo 'Album:' $album;
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement