12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/bin/sh
- # https://mro.name/radio-privatkopie
- #
- cd "$(dirname "${0}")/.." || exit 1
- readonly bc="../../stations/${1}.xml"
- readonly YES=0
- readonly NO=1
- grep -E 'Jazz & Politik.+ name="DC\.title"' \
- "${bc}" > /dev/null \
- && exit $YES
- grep -E 'Bairisch Esperanto.+ name="DC\.title\.episode"' \
- "${bc}" > /dev/null \
- && exit $YES
- grep -E 'Wiederholung vom Freitag, 14\.05 Uhr.+ name="DC\.description"' \
- "${bc}" > /dev/null \
- && exit $NO
- grep -E 'radioSpitzen.+ name="DC\.title"' \
- "${bc}" > /dev/null \
- && exit $YES
- grep -E 'Wiederholung (von|vom Freitag,) 16\.05 Uhr.+ name="DC\.description"' \
- "${bc}" > /dev/null \
- && exit $NO
- grep -E 'Eins zu Eins. Der Talk.+ name="DC\.title"' \
- "${bc}" > /dev/null \
- && grep -E 'Bogdahn.+ name="DC\.description"' \
- "${bc}" > /dev/null \
- && exit $YES
- grep -E 'Urbi et Orbi.+ name="DC\.title"' \
- "${bc}" > /dev/null \
- && exit $YES
- grep -E 'Resetarits' \
- "${bc}" > /dev/null \
- && exit $YES
- exit $NO
|