let sarnamie= {
"https://audio-edge-es6pf.mia.g.radiomast.io/d7e8093b-6a7e-4442-a096-37f259cb7092" : "Rapar",
"https://rs.suricloud.com/radio/8050/radio.mp3" : "Trishul",
"https://stream.zeno.fm/6etys88fup8uv" : "Rasonic",
"https://rs.suricloud.com/radio/8030/radio.mp3" : "Sangeetmala",
//"https://stream.zeno.fm/nrs4d44vzv8uv;" : "Ishara",
"https://stream.zeno.fm/nqm3a44vzv8uv" : "Ishara",
"https://rs.suricloud.com/radio/8120/radio.mp3" : "Ek Sitara",
"https://my.ssl-stream.com/Suvidha_Radio" : "Suvidha",
"https://rs.suricloud.com/radio/8000/radio.mp3" : "Shruti",
"https://amorfm_192.streampartner.nl/stream" : "Amor",
"http://www.dhantalradio.ca:8000/stream1" : "Dhantal",
//"http://streaming01.x-6.nl:8000/;" : "Srinagar",
"https://stream.zeno.fm/d9wgghcwzv8uv" : "Srinagar",
"https://server-25.stream-server.nl:8348/stream" : "Sitara FM",
"http://stream.akaashfm.com:8000/live" : "Akaash FM",
"https://onlineradio.websoftitnepal.com/8030/stream/1/.mp4a.40.5" : "Vahon",
//"https://onlineradio.websoftitnepal.com/8030/stream" : "Vahon",
"https://server4.ujala.nl/stream/2/listen.mp3" : "Ujala",
"https://stream.sfmstreaming.nl/sunrisefm" : "Sunrise FM",
"http://stream2.iqhosted.nl:8000/stream/1/" : "Sangam",
"https://rs.suricloud.com/radio/8130/radio.mp3" : "Sargam",
"https://hidradio.live-streams.nl/live?type=.mp3/;stream.mp3" : "HiD Radio",
"https://stream.zeno.fm/kzsmp5qs9k0uv" : "Radio Sarnami",
"https://stream.zeno.fm/putkar0p9k0uv" : "Bollywood Sur.",
"https://stream.zeno.fm/ctmsytc6em0uv" : "Joyce The Voice",
"https://stream.zeno.fm/p218h6ccxnhvv" : "AVS Radio",
"https://stream.zeno.fm/bu26ykfcxnhvv" : "AVS Classic",
"https://stream.zeno.fm/xssh6qrf1wzuv" : "Assalaam",
"https://solid48.streamupsolutions.com/proxy/radiosbs/radiosbs" : "SBS Radio",
"http://mscp3.live-streams.nl:8050/stream" : "Pehchaan",
"https://stream.hostinggold.eu:1185/stream" : "Hulchul",
};

let general= {
"https://surilive.com:8020/;" : "ABC",
//"https://stream.zeno.fm/7qt8yd08qchvv" : "ABC",
//"https://stream.prography.com/stream/8064" : "Apintie",
"https://stream.zeno.fm/zh2rs490x68uv" : "Apintie",
"https://surilive.com:8060/;" : "SRS",
"https://s5.radio.co/s85a633f73/listen" : "Radio 10",
//"https://streams.radio.co/s28bc986cd/listen" : "Radio 10",
//"https://168.195.218.193:8000/radio1-3" : "RP Hot One",
//"https://168.195.218.193:8000/radio2-2" : "Beat FM",
"https://stream.zeno.fm/084958y3ynhvv" : "GOV Radio",
"https://video1.getstreamhosting.com:8340/stream" : "SCCN Smooth",
//"http://sccn104.serverroom.us:5600/;stream.mp3" : "SCCN Smooth",
"https://rs.suricloud.com/radio/8010/radio.mp3" : "Sky - Pipel",
"https://radiostream.limfmsu.com/radio" : "LIM FM",
"https://rs.suricloud.com/radio/8060/radio.mp3" : "Radio 9",
"https://stream.rcast.net/67505": "Suri-Lite",
//"https://stream.zeno.fm/favahvks5rhvv" : "Suri-Lite Radio",
//"https://162.244.80.245:8006/;" : "FM Gold",
"https://surilive.com:8070/;" : "Color Radio",
//"https://canopus.dribbcast.com/stream/8052/stream/1/" : "Color Radio",
//"https://solid41.streamupsolutions.com/proxy/yjdqldwt?mp=/stream" : "Da Beat",
//"https://streaming.shoutcast.com/we-radio?" : "WE Radio",
"https://caster05.streampakket.com/proxy/9338/stream/1/" : "Tamara",
"https://surilive.com:8010/;" : "NIO FM",
//"https://canopus.dribbcast.com/stream/8010" : "NIO FM",
//"https://127.0.0.1:26671/listen.pls" : "Radio One",
//"https://listen.shoutcast.com/k1009" : "Kankantri",
"http://stanvasteradio.gkstreamen.nl:8120/;" : "Stanvaste",
"https://icecast.omroep.nl/3fm-bb-mp3" : "Radio FM 103",
"http://cc3b.beheerstream.com:8192/;stream.mp3" : "Cariba FM",
"https://larry.torontocast.com:1795/stream" : "Neutral",
"https://stream.zeno.fm/xsdmzxyhc18uv" : "Radio 804",
"https://stream.zeno.fm/5tv3n9cw008uv" : "Lime",
"https://stream.zeno.fm/u32bq5sfunhvv" : "DTV Radio",
//"https://kawiesh.tk/resources/placeholder.mp3" : "Placeholder"
};

let javanese= {
"https://worldstreaminglive.com/proxy/apzrueeh/stream" : "Garuda",
//"https://streaming.radionomy.com/LaguJawa" : "Lagu Jawa",
"http://94.23.148.11:8214/stream/1/" : "Siaran Jawa",
"https://s5.radio.co/s1735f3c1d/listen" : "Surja Vibes",
"https://stream.zeno.fm/w6hh0rqqwy8uv" : "DjRegi",
"https://betelgeuse.dribbcast.com/proxy/abhost?mp=/stream" : "Bangsa Jawa",
"https://stream.zeno.fm/u3abxhenhf9uv" : "Tamanredjo Talents"
};

let sranang= {
"https://mediaserv30.live-streams.nl:18020/stream" : "Konmakandra",
//"https://canopus.dribbcast.com/stream/8052" : "Anjisa",
"https://worldstreaminglive.com/proxy/koyeba/stream" : "Koyeba FM",
//"https://stream.prography.nl/stream/8062" : "Boskopu",
"https://stream.zeno.fm/zduxspz4kv8uv" : "Fan Da Libi",
"https://stream.zeno.fm/y3k2cb2mpchvv" : "Ollies Radio",
"https://stream.zeno.fm/abb1cne92hhvv" : "DC SuriRadio",
//"https://91.196.171.99/radiobrasa" : "Brasa",
"https://kathy.torontocast.com:2945/stream" : "Radio Anda",
//"https://stream.zenolive.com/6te6g6ubed0uv.aac" : "Radio Anda",
//"https://178.63.94.130:8080/9181316.ogg" : "Positive",
"https://sonic.magicdragon.nl:7011/stream" : "Pokoe FM",
//"https://46.4.5.234:8080/9173707.ogg" : "Asosye",
"https://stream.zeno.fm/q4wkxqmdqchvv" : "Asosye",
"https://patmos.cdnstream.com/proxy/rifawaka/?mp=/stream" : "Fawaka",
"https://clare.shoutca.st/radio/8070/radio.mp3":"MS Radio",
"https://stream.zeno.fm/ysd1dvrtcv8uv" : "Ketebuna",
"https://stream.zeno.fm/rnf3xu9tgs8uv" : "Boeskondee Media",
"https://stream.zeno.fm/1sqwfhqwra0uv" : "Fandaaki Paanzu",
"https://stream.zeno.fm/kyve9mgds18uv" : "Radio Totness",
"https://stream.zeno.fm/db9pak567ehvv" : "DJBadJho",
"https://stream.zeno.fm/unz726g6kfhvv" : "Maipa",
"https://stream.zeno.fm/p0d98x5phs8uv" : "DoubleB 2",
"https://stream.zeno.fm/ym53qqc53hhvv" : "Sam Taki",
"https://stream.zeno.fm/gg7afgcuhkhvv" : "Makandi",
"https://stream.zeno.fm/q6cwr2fb1rhvv" : "Boss Media",
//"https://kawiesh.tk/resources/placeholder.mp3" : "Placeholder"
};

let christian= {
"https://worldstreaminglive.com/proxy/radioshalom/stream" : "Shalom",
"https://stream.zeno.fm/6nt6k3e2x68uv" : "Immanu&euml;l",
"http://server.jvhost.net:8010/live" : "Kabar Katresnan",
//"https://198.7.59.204/stream.mp3?ipport=198.7.59.204_31366" : "Radio 7 Gospel",
"https://cc5.beheerstream.com/proxy/exoticaradio?mp=/stream" : "Radio mArt",
"https://stream.zeno.fm/kadt188ugy8uv" : "Afonsoewa",
"https://stream.radiomaria.nl/mp3" : "Radio Maria"
};

let other= {
"https://d1x0scdnoh33b7.cloudfront.net/olonradio/537b9f27/master.m3u8" : "Razo",
"https://d1x0scdnoh33b7.cloudfront.net/olonradio/7fb21f1b/master.m3u8" : "Caribbean FM",
"https://surilive.com:8050/stream/1/" : "LPM Portugese",
"https://stream.zeno.fm/w0hf496vvhhvv" : "Paw Matu Radio",
//"https://kawiesh.tk/resources/placeholder.mp3" : "Placeholder"
};


//--------

let proxy0= "https://cors.bitwize.com.lb/";
let proxy1= "https://www.liveradio.es/";
let proxy2= "https://api.codetabs.com/v1/proxy?quest=";

function addProxy(oldobj,newobj){
for(let key in oldobj){
if(!key.startsWith("https")){
newobj[`${proxy0}${key}`]= `${oldobj[key]} !`;
}
else newobj[key]= oldobj[key];
}
}




let list= [sarnamie,general,sranang,christian,javanese,other],
liststring= "sarnamie,general,sranang,christian,javanese,other";
liststring= liststring.split(",");


//PROXY OVER HTTPS
if(location.protocol=="https:"){
let proxiedList= [];
list.forEach(i=>{
let clonedObject= {};
proxiedList.push(clonedObject);
});

list.forEach((i,x)=> addProxy(list[x],proxiedList[x]));
list= proxiedList;
}


//HIDE STATIONS
let block= "[2,4,5,8,10,12,18,19]";
let blocklist= localStorage["_block"]|| block;
block= JSON.parse(blocklist);
block= [];



//LOCATION HASH
let lang= 0;
let hash= liststring[lang];

function lolz(){
hash= location.hash.replace("#","");
for(let i=0; i<liststring.length; i++){
if(liststring[i]==hash){
lang= i;
break;
}
else lang= 0;

}
}


lolz();
