what I did wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The bbc.sh script again, but this one works:
cut here.
#!/usr/bin/env bash
# file: bbc.sh
PS3="Enter a number to Choose station: "
select station in bbc1 bbc-1-extra bbc-2 bbc-3 bbc-4 \
		       b		  bc-4-long-wave-and-shipping bbc-4-extra bbc-5 \
bbc-6-music bbc-world-service quit
do
    case $REPLY in
        1)
	     mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_radio_one.pls
	     ;;

	 2)
		mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_1xtra.pls
		;;

	      3)
		     mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_radio_two.pls
		     ;;

		   4)
			  mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_radio_three.pls
			  ;;

			 			5)
						       mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_radio_fourfm.pls
						       ;;

			     6)
				    mpv http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/format/pls/proto/http/vpid/bbc_radio_fourlw.pls
				    ;;

				    				  7)
									 mpv http://stream.live.vc.bbcmedia.co.uk/bbc_radio_four_extra
									 ;;

									 				       8)
														      mpv http://stream.live.vc.bbcmedia.co.uk/bbc_radio_five_live_online_nonuk
														      ;;

														      9)
															     mpv http://stream.live.vc.bbcmedia.co.uk/bbc_6music
															     ;;

															     10)
																     mpv http://stream.live.vc.bbcmedia.co.uk/bbc_world_service
																     ;;

																     11)
																	     exit 0
																	     ;;

																	     																     esac
															     done

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]