tradio - scripts - random scripts (HTM) git clone https://git.parazyd.org/scripts (DIR) Log (DIR) Files (DIR) Refs --- tradio (1427B) --- 1 #!/usr/bin/env python3 2 3 from subprocess import call 4 from sys import argv, exit 5 6 radios = { 7 "ondarossa": "http://radio.dyne.org/ondarossa.mp3.m3u", 8 "mercadosul": "http://radio.dyne.org/mercadosul.ogg.m3u", 9 "blurfm": "http://radio.dyne.org/blurfm02.m3u", 10 "auroville": "http://radio.dyne.org/auroville.mp3.m3u", 11 "2f30": "http://radio.2f30.org:8000/live.mp3", 12 "yammat": "https://studio20.radiolize.com/radio/8000/320kbps.mp3?1578641935", 13 "klfm": "http://klfm.streamradio.com.hr:2199/tunein/klfm1.pls", 14 "nope": "http://radionope.streamguys1.com/listen.pls", 15 "paradise": "https://www.radioparadise.com/m3u/mp3-192.m3u", 16 "bitreich": "http://bitreich.org:3232/live.m3u", 17 "101": "http://live.radio101.hr:9531/stream", 18 "057": "http://streaming.radio057.hr:8000/radio057.m3u", 19 "gold": "http://live.goldfm.hr:8068", 20 "brac": "http://s8.iqstreaming.com:8066/listen.pls?sid=1", 21 "202": "http://138.201.33.250:8000/rts_4", 22 "hvar": "http://5.133.182.164:12339", 23 "student": "http://www.radiostudent.hr/AAC128.pls", 24 "dalmacija": "http://shoutcast.pondi.hr:8000/listen.pls", 25 "otvoreni": "http://otvoreni.hr/UserDocsImages/stream.pls", 26 "coronavibe": "http://coronavi.be:8000/stream", 27 } 28 29 30 if len(argv) < 2: 31 print(radios.keys()) 32 exit(1) 33 34 radio = radios.get(argv[1]) 35 36 if not radio: 37 print(radios.keys()) 38 exit(1) 39 40 call(["/usr/bin/mpv", "--no-video", radio])