|
a/src/radio_scripts/radio-paradise-get-art.sh |
|
b/src/radio_scripts/radio-paradise-get-art.sh |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
|
|
2 |
# Poor example for a very basic script to retrieve the cover art. The
|
|
|
3 |
# Radio Paradise now.xml file actually contains much more info, but
|
|
|
4 |
# there has to be an example of a simple artScript (outputs cover art
|
|
|
5 |
# url), as opposed to metaScript (outputs full metadata json).
|
2 |
|
6 |
|
3 |
curl -s http://radioparadise.com/xml/now.xml | grep '<coverart>' | sed -e 's/<coverart>//' -e 's!</coverart>!!'
|
7 |
curl -s http://radioparadise.com/xml/now.xml | grep '<coverart>' | sed -e 's/<coverart>//' -e 's!</coverart>!!'
|
4 |
|
8 |
|