so://phie

verbal

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/bash

2

3id="$1"

4echo "$id"

5ext="$2"

6url=$(psql verbal -c "select icon from station where id = $id;" -t | xargs echo -n)

7curl -sL "$url" -o "/home/andreas/git/verbal/media/$id.jpg"

8psql 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;"