A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
blob: 66a65262c1576199b2627278b0627da15253a3a9 (337 bytes)[doc][blame][raw]
1
#!/bin/bash3
id="$1"4
echo "$id"5
ext="$2"6
url=$(psql verbal -c "select icon from station where id = $id;" -t | xargs echo -n)7
curl -sL "$url" -o "/home/andreas/git/verbal/media/$id.jpg"8
psql verbal -c "insert into station_status (station_id, is_icon) values ($id, true) on conflict (station_id) do update set is_icon = excluded.is_icon;"