#!/bin/sh CACHE=2000 BASE_URL="http://areena.yle.fi/tv/suorat/" VLC="/Applications/VLC.app/Contents/MacOS/VLC" if [ "$1" = "tv1" ] || [ "$1" = "1" ] then yle-dl --pipe ${BASE_URL}yle-tv1|$VLC --file-caching=$CACHE - exit fi if [ "$1" = "tv2" ] || [ "$1" = "2" ] then yle-dl --pipe ${BASE_URL}yle-tv2|$VLC --file-caching=$CACHE - exit fi if [ "$1" = "fem" ] || [ "$1" = "3" ] then yle-dl --pipe ${BASE_URL}yle-fem|$VLC --file-caching=$CACHE - exit fi if [ "$1" = "teema" ] || [ "$1" = "4" ] then yle-dl --pipe ${BASE_URL}yle-teema|$VLC --file-caching=$CACHE - exit fi echo usage: echo "$0 tv1 | tv2 | fem | teema" exit 1