Posted By

cruelfate on 01/22/11


Tagged

wget winamp


Versions (?)

wgetm3u.sh


 / Published in: Bash
 

  1. #! /bin/bash
  2.  
  3. function usage {
  4. echo 'Download stream specified by Winamp playlist URL.'
  5. echo ''
  6. echo 'usage: getm3u.sh urls .. '
  7. echo ''
  8. exit
  9. }
  10.  
  11. if [ $# -eq 0 ] ; then
  12. usage
  13. fi
  14.  
  15. for url in $*
  16. do
  17. wget "`curl -s $url | tail -n 1`"
  18. done

Report this snippet  

You need to login to post a comment.