Kompiluje se
[mirrors/Programs.git] / bash / lastfm / lastfm.bash
1 #!/bin/bash
2 BROWSER='epiphany';
3 BROWSER='firefox'
4 BROWSARGS='-width 300 -height 150';
5 DIALOG='gdialog';
6
7 lastfm-play() {
8 URL="http://www.last.fm/webclient/popup/?radioURL=lastfm%3A%2F%2Fartist%2F$1%2Fsimilarartists&resourceID=undefined&resourceType=undefined";
9 "$BROWSER" $BROWSARGS "$URL";
10 }
11
12 tmpfile="/tmp/lastfm-$$.tmp";
13 "$DIALOG" --backtitle 'Last.fm tuner by <~~Harvie 2oo8' --title 'Search' --inputbox "Artist" 0 0 2>"$tmpfile";
14 if [ "$?" != 1 ]; then
15 lastfm-play "$(cat "$tmpfile")";
16 fi;
17
This page took 0.27193 seconds and 4 git commands to generate.