Untitled


SUBMITTED BY: antoineh1

DATE: May 4, 2016, 6:08 p.m.

FORMAT: Text only

SIZE: 663 Bytes

HITS: 662

  1. #!/bin/sh
  2. CACHE=2000
  3. BASE_URL="http://areena.yle.fi/tv/suorat/"
  4. VLC="/Applications/VLC.app/Contents/MacOS/VLC"
  5. if [ "$1" = "tv1" ] || [ "$1" = "1" ]
  6. then
  7. yle-dl --pipe ${BASE_URL}yle-tv1|$VLC --file-caching=$CACHE -
  8. exit
  9. fi
  10. if [ "$1" = "tv2" ] || [ "$1" = "2" ]
  11. then
  12. yle-dl --pipe ${BASE_URL}yle-tv2|$VLC --file-caching=$CACHE -
  13. exit
  14. fi
  15. if [ "$1" = "fem" ] || [ "$1" = "3" ]
  16. then
  17. yle-dl --pipe ${BASE_URL}yle-fem|$VLC --file-caching=$CACHE -
  18. exit
  19. fi
  20. if [ "$1" = "teema" ] || [ "$1" = "4" ]
  21. then
  22. yle-dl --pipe ${BASE_URL}yle-teema|$VLC --file-caching=$CACHE -
  23. exit
  24. fi
  25. echo usage:
  26. echo "$0 tv1 | tv2 | fem | teema"
  27. exit 1

comments powered by Disqus