Skip to content

Commit 17fa484

Browse files
authored
BgRadio@spacy01: Fix stream URLs (#7931)
1 parent 7a740dc commit 17fa484

File tree

1 file changed

+27
-35
lines changed
  • BgRadio@spacy01/files/BgRadio@spacy01

1 file changed

+27
-35
lines changed

BgRadio@spacy01/files/BgRadio@spacy01/applet.js

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ MyApplet.prototype = {
5656
var radiostation2 = _("bTV Radio");
5757
this.RadioItem.menu.addAction(radiostation2, () => {
5858
Util.spawnCommandLine("killall -9 mpv");
59-
Util.spawnCommandLine("mpv http://live.btvradio.bg/btv-radio.mp3 &");
59+
Util.spawnCommandLine("mpv https://cdn.bweb.bg/radio/btv-radio.mp3 &");
6060
Main.notify(_("Listening %s").format(radiostation2));
6161
});
6262

@@ -72,23 +72,23 @@ MyApplet.prototype = {
7272
var radiostation4 = _("Classic FM");
7373
this.RadioItem.menu.addAction(radiostation4, () => {
7474
Util.spawnCommandLine("killall -9 mpv");
75-
Util.spawnCommandLine("mpv http://live.btvradio.bg/classic-fm.mp3");
75+
Util.spawnCommandLine("mpv https://cdn.bweb.bg/radio/classic-fm.mp3");
7676
Main.notify(_("Listening %s").format(radiostation4));
7777
});
7878

7979
//darik radio
8080
var radiostation5 = _("Darik");
8181
this.RadioItem.menu.addAction(radiostation5, () => {
8282
Util.spawnCommandLine("killall -9 mpv");
83-
Util.spawnCommandLine("mpv http://darikradio.by.host.bg:8000/S2-128");
83+
Util.spawnCommandLine("mpv --vid=no https://euc13.playlist.ttvnw.net/v1/playlist/CroGbwFwTBfCY0guxc80vtInr5nykiYOZWZ6_nBg6ir45NrXpX0eja3EcdO4eOHktCS_JMS03VoOG4yFGWl7fNtVtQAmoO8zqBfvn9xaTHUJqXNLw75qIZ0VE47kqtb_vAm5rgWZc3pjIRGJ6aiPPZv-c83ThvQs_sh8k8wOar4sWA_Wh8sCUhcFPB-NXJAXNQg53_ya2P0GXUXxid4WGCh_3AwF72TAjakCIsqm94XzKvpGe5os4JrPXTmWMF1P_bP0SWTRU7ebtZEyOUTXCczPci93XjLd9wxLmzVAx0E0ZGpJSWcuL4JBkH0vgk3iYikd7wJUjtVOrPliuTTZ__I8V9T7B-4K86HXx7-Ad0TK4KvvLOiPqfelhaObyckdB-EvDddRqFBrrjLWlKMRqZDgspLIRzFxDd4hGLWc57oeWg9HaFhd05rY-udzAfu_K9smk8OkjPkaZvWrHPI_ypvxr1MOddT5G-OOceFUMc4fe5fe8jIXHx0GQmyXz2BoXVlfn3MwSvfgQgsJxKPHlpazUK7gn1uKv059RYN4RqujlqqOVOSJqeEhgnGgYW5kkAsJm3bcYuVwPtCJeMJhabshh5LIBLNMVTGnTtycL_45D9nqRUE_jEkFu-UkV0f8w6tEBg8sP01rXG-60JzVf6VPrTjOPnmNmjtzARTq99AGRN0_yYy7GcrwAysZxDUOJfA_fvYcfjGOdX-dqkOQYRbOVAU4qqmvA4IwqXlrtL2PNsDZyvKnQjdZQCrtqoB9-9A8d_gi5ITSyjWNBgxbkC3gTkxbsic9aZpUdvLFBb5ygEm8Pxos0XwOnTUkIrLnV9sFBI6_MudTq5-fLfbY-LpWo3Jz7b72YToszHQu0YHKMkuRglNTWFbrMq0iWT1ZGhe7hCOV8mEKgbZaHfeJu53PVhJ2WljTkDNXIeisHwIAnnDGz7AsHx4ieCjVUfqoSMnNxOuXKQOsLCT5kEdLaYjulxyvXQ5Y7pT2q_U9qXFAjZW4MxWjvd-Xd9IQYL6CUUjK7urYM-G6ODH_Neb4M_1sNmSEUoojD6GR-yicfdyjingfz4VwTZAjsozGZbwt-LFOfZU34ej6DuQVVxoMHqhldHOfOluoQWeoIAEqCWV1LXdlc3QtMjDMDQ.m3u8");
8484
Main.notify(_("Listening %s").format(radiostation5));
8585
});
8686

8787
//darik nostalgie
8888
var radiostation6 = _("Darik Nostalgie");
8989
this.RadioItem.menu.addAction(radiostation6, () => {
9090
Util.spawnCommandLine("killall -9 mpv");
91-
Util.spawnCommandLine("mpv http://darikradio.by.host.bg:8000/Nostalgie");
91+
Util.spawnCommandLine("mpv https://a10.asurahosting.com:7600/radio.mp3");
9292
Main.notify(_("Listening %s").format(radiostation6));
9393
});
9494

@@ -120,15 +120,15 @@ MyApplet.prototype = {
120120
var radiostation10 = _("Jazz FM");
121121
this.RadioItem.menu.addAction(radiostation10, () => {
122122
Util.spawnCommandLine("killall -9 mpv");
123-
Util.spawnCommandLine("mpv http://live.btvradio.bg/jazz-fm.mp3");
123+
Util.spawnCommandLine("mpv https://cdn.bweb.bg/radio/jazz-fm.mp3");
124124
Main.notify(_("Listening %s").format(radiostation10));
125125
});
126126

127127
//k2 radio
128128
var radiostation11 = _("K2");
129129
this.RadioItem.menu.addAction(radiostation11, () => {
130130
Util.spawnCommandLine("killall -9 mpv");
131-
Util.spawnCommandLine("mpv http://stream.radiok2.bg:8000/rk2-high");
131+
Util.spawnCommandLine("mpv http://stream.radiok2.bg:8000/rk2");
132132
Main.notify(_("Listening %s").format(radiostation11));
133133
});
134134

@@ -144,7 +144,7 @@ MyApplet.prototype = {
144144
var radiostation13 = _("N-Joy");
145145
this.RadioItem.menu.addAction(radiostation13, () => {
146146
Util.spawnCommandLine("killall -9 mpv");
147-
Util.spawnCommandLine("mpv http://live.btvradio.bg/njoy.mp3");
147+
Util.spawnCommandLine("mpv https://cdn.bweb.bg/radio/njoy.mp3");
148148
Main.notify(_("Listening %s").format(radiostation13));
149149
});
150150

@@ -176,15 +176,15 @@ MyApplet.prototype = {
176176
var radiostation17 = _("The Voice Radio");
177177
this.RadioItem.menu.addAction(radiostation17, () => {
178178
Util.spawnCommandLine("killall -9 mpv");
179-
Util.spawnCommandLine("mpv rtsp://31.13.217.76:1935/rtplive/thevoiceradio_live.stream");
179+
Util.spawnCommandLine("mpv https://nova-radio.neterra.tv/thevoice");
180180
Main.notify(_("Listening %s").format(radiostation17));
181181
});
182182

183183
//zrock radio
184184
var radiostation18 = _("Z-Rock");
185185
this.RadioItem.menu.addAction(radiostation18, () => {
186186
Util.spawnCommandLine("killall -9 mpv");
187-
Util.spawnCommandLine("mpv http://live.btvradio.bg/z-rock.mp3");
187+
Util.spawnCommandLine("mpv https://cdn.bweb.bg/radio/z-rock.mp3");
188188
Main.notify(_("Listening %s").format(radiostation18));
189189
});
190190

@@ -199,95 +199,87 @@ MyApplet.prototype = {
199199
var tvstation1 = _("BNT");
200200
this.TvItem.menu.addAction(tvstation1, () => {
201201
Util.spawnCommandLine("killall -9 mpv");
202-
Util.spawnCommandLine("bash -c \"wget -r -l1 -H -Dcdn.bg -O '/tmp/bnt.txt' 'http://tv.bnt.bg/bnt1/16x9/'; grep playlist.m3u8 '/tmp/bnt.txt' | cut -c27-115 > '/tmp/bnt1.txt'; mpv --title=BNT --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv $(cat /tmp/bnt1.txt); rm /tmp/bnt.txt /tmp/bnt1.txt \"");
202+
Util.spawnCommandLine("mpv https://cdn3.glebul.com:8443/dvr/hd-bnt-1-hd/tracks-v1a1/index.m3u8?token=418f6aaa58bed4a09cb11d863a5057b7bb04155d-33fd8c7a49fb2b6804894f25f1d1099e-1761871845-1761861045 --title=BNT --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv");
203203
Main.notify(_("Watching %s").format(tvstation1));
204204
});
205205

206206
//bnt2
207207
var tvstation2 = _("BNT 2");
208208
this.TvItem.menu.addAction(tvstation2, () => {
209209
Util.spawnCommandLine("killall -9 mpv");
210-
Util.spawnCommandLine("bash -c \"wget -r -l1 -H -Dcdn.bg -O '/tmp/bnt.txt' 'http://tv.bnt.bg/bnt2/16x9/'; grep playlist.m3u8 '/tmp/bnt.txt' | cut -c27-115 > '/tmp/bnt1.txt'; mpv --title='BNT 2' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv $(cat /tmp/bnt1.txt); rm /tmp/bnt.txt /tmp/bnt1.txt\"");
210+
Util.spawnCommandLine("mpv https://cdn4.glebul.com:8443/dvr/bnt-2/tracks-v1a1/index.m3u8?token=1e15fd311994bad7f16603e9f6a868045b92bd4c-866cf3a238e254d45e7240c81ab5e765-1761872030-1761861230 --title='BNT 2' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv");
211211
Main.notify(_("Watching %s").format(tvstation2));
212212
});
213-
214-
//bnthd
215-
var tvstation3 = _("BNT HD");
213+
214+
//bnt3
215+
var tvstation3 = _("BNT 3");
216216
this.TvItem.menu.addAction(tvstation3, () => {
217217
Util.spawnCommandLine("killall -9 mpv");
218-
Util.spawnCommandLine("bash -c \"wget -r -l1 -H -Dcdn.bg -O '/tmp/bnt.txt' 'http://tv.bnt.bg/bnthd/'; grep playlist.m3u8 '/tmp/bnt.txt' | cut -c27-116 > '/tmp/bnt1.txt'; mpv --title='BNT HD' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv $(cat /tmp/bnt1.txt); rm /tmp/bnt.txt /tmp/bnt1.txt\"");
218+
Util.spawnCommandLine("mpv https://cdn4.glebul.com:8443/dvr/hd-bnt-3-hd/tracks-v1a1/index.m3u8?token=a5d3c2481ec148b33e85f9c8214e1a1c86a8f3a1-df66aec7911cc438622e9d7a7449a5b6-1761872182-1761861382 --title='BNT 3' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv");
219219
Main.notify(_("Watching %s").format(tvstation3));
220220
});
221-
222-
//bntsat
223-
var tvstation4 = _("BNT World");
221+
222+
//bnt4
223+
var tvstation4 = _("BNT 4");
224224
this.TvItem.menu.addAction(tvstation4, () => {
225225
Util.spawnCommandLine("killall -9 mpv");
226-
Util.spawnCommandLine("bash -c \"wget -r -l1 -H -Dcdn.bg -O '/tmp/bnt.txt' 'http://tv.bnt.bg/bntworld/'; grep playlist.m3u8 '/tmp/bnt.txt' | cut -c27-115 > '/tmp/bnt1.txt'; mpv --title='BNT World' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv $(cat /tmp/bnt1.txt); rm /tmp/bnt.txt /tmp/bnt1.txt\"");
226+
Util.spawnCommandLine("mpv https://cdn4.glebul.com:8443/dvr/bnt-4/tracks-v1a1/index.m3u8?token=5e0f442bbfb59b4bfd55fba3cba6767cf6abd77b-91dcd2e112e6af82269be62413175560-1761872554-1761861754 --title='BNT 4' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv");
227227
Main.notify(_("Watching %s").format(tvstation4));
228228
});
229229

230230
//btv
231231
var tvstation5 = _("bTV");
232232
this.TvItem.menu.addAction(tvstation5, () => {
233233
Util.spawnCommandLine("killall -9 mpv");
234-
Util.spawnCommandLine("bash -c \"mpv 'http://46.10.150.111/alpha/alpha/playlist.m3u8' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='bTV'\"");
234+
Util.spawnCommandLine("mpv 'https://cdn4.glebul.com:8443/dvr/hd-btv-hd/tracks-v1a1/index.m3u8?token=00e22310c81f99ea073943ed581ca7be6f7522dc-72e1efdb57f63d8021481bd91ab918f3-1761871677-1761860877' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='bTV'");
235235
Main.notify(_("Watching %s").format(tvstation5));
236236
});
237237

238-
//bit
239-
var tvstation6 = _("BIT");
240-
this.TvItem.menu.addAction(tvstation6, () => {
241-
Util.spawnCommandLine("killall -9 mpv");
242-
Util.spawnCommandLine("bash -c \"mpv 'http://hls.cdn.bg:2103/fls/bit_2.stream/playlist.m3u8' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='BIT'\"");
243-
Main.notify(_("Watching %s").format(tvstation6));
244-
});
245-
246238
//city
247239
var tvstation7 = _("City");
248240
this.TvItem.menu.addAction(tvstation7, () => {
249241
Util.spawnCommandLine("killall -9 mpv");
250-
Util.spawnCommandLine("bash -c \"rtmpdump -r 'rtmp://nodeb.gocaster.net:1935/CGL/_definst_/' -W 'http://iphone.fmstreams.com/jwplayer/player.swf' -p 'http://city.bg/live/' -y 'mp4:TODAYFM_TEST2' -b '0' | mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='City' -\"");
242+
Util.spawnCommandLine("mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='City' https://tv.city.bg/play/tshls/citytv/3.m3u8");
251243
Main.notify(_("Watching %s").format(tvstation7));
252244
});
253245

254246
//kanal3
255247
var tvstation8 = _("Kanal 3");
256248
this.TvItem.menu.addAction(tvstation8, () => {
257249
Util.spawnCommandLine("killall -9 mpv");
258-
Util.spawnCommandLine("bash -c \"rtmpdump -r 'rtmp://edge4.cdn.bg:2017/fls' -a 'fls/' -W 'http://i.cdn.bg/flash/jwplayer510/player.swf' -f 'WIN 18,0,0,232' -p 'http://i.cdn.bg/live/Atki7GnEae' -y 'kanal3.stream?at=b0d1270b39e08ad9c78dc53f43a1ba5c' | mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='Kanal 3' -\"");
250+
Util.spawnCommandLine("mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='Kanal 3' 'https://cdn2.invivo.bg/k3artfrwbsitfrnglpvlv/tracks-v1/index.fmp4.m3u8' --audio-file='https://cdn2.invivo.bg/k3artfrwbsitfrnglpvlv/tracks-a1/index.fmp4.m3u8'");
259251
Main.notify(_("Watching %s").format(tvstation8));
260252
});
261253

262254
//nova
263255
var tvstation9 = _("Nova");
264256
this.TvItem.menu.addAction(tvstation9, () => {
265257
Util.spawnCommandLine("killall -9 mpv");
266-
Util.spawnCommandLine("bash -c \"rtmpdump -r 'rtmp://e1.cdn.bg:2060/fls' -T 'N0v4TV6#2' -a 'fls' -f 'WIN 18,0,0,232' -W 'http://i.cdn.bg/eflash/jwNTV/player.swf' -p 'http://i.cdn.bg/live/0OmMKJ4SgY' -y 'ntv_1.stream' | mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='NOVA' -\"");
258+
Util.spawnCommandLine("mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='NOVA' https://e121-ts.cdn.bg/ntv/fls/ntv_2.stream/at=O0M9MjEzLjEzMC43OS4xNjM7RT0xNzYxODc2OTYzO0E9MTtLPTM7UD0wMTExMDtTPTlmNWM0M2UxZTQwM2JmOTBiY2ZiYTM4OTJmNTQ3NDFjNjU4YzZlZjY=/chunklist.m3u8");
267259
Main.notify(_("Watching %s").format(tvstation9));
268260
});
269261

270262
//onair
271263
var tvstation10 = _("On Air");
272264
this.TvItem.menu.addAction(tvstation10, () => {
273265
Util.spawnCommandLine("killall -9 mpv");
274-
Util.spawnCommandLine("bash -c \"mpv 'http://ios.cdn.bg:2006/fls/bonair.stream/playlist.m3u8' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='On Air' \"");
266+
Util.spawnCommandLine("mpv 'https://e112-ts.cdn.bg/mnet/fls/bonair.stream/at=O0M9MjEzLjEzMC43OS4xNjM7RT0xNzYxODc2Nzg4O0E9MTtLPTM7UD0wMTExMDtTPTM1NmQyYWU3MzgyM2NhNzMyNjJlNmJjMzFjMTQyZDhlYmUwMTdiZjM=/chunklist.m3u8' --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='On Air' \"");
275267
Main.notify(_("Watching %s").format(tvstation10));
276268
});
277269

278270
//thevoice
279271
var tvstation11 = _("The Voice");
280272
this.TvItem.menu.addAction(tvstation11, () => {
281273
Util.spawnCommandLine("killall -9 mpv");
282-
Util.spawnCommandLine("bash -c \"rtmpdump -r 'rtmp://31.13.217.76/rtplive' -W 'http://www.thevoice.bg/js/thevoice_videostreem.swf' -p 'http://www.thevoice.bg/' -y 'thevoice_live.stream' -b '0' | mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='The Voice' -\"");
274+
Util.spawnCommandLine("mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='The Voice' https://bss1.neterra.tv/thevoice/stream_0.m3u8");
283275
Main.notify(_("Watching %s").format(tvstation11));
284276
});
285277

286278
//magictv
287279
var tvstation12 = _("Magic TV");
288280
this.TvItem.menu.addAction(tvstation12, () => {
289281
Util.spawnCommandLine("killall -9 mpv");
290-
Util.spawnCommandLine("bash -c \"rtmpdump -r 'rtmp://31.13.217.76:1935/magictv' -W 'http://www.thevoice.bg/js/thevoice_videostreem.swf' -p 'http://www.thevoice.bg/' -y 'magictv_live.stream' -b '0' | mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='Magic TV' -\"");
282+
Util.spawnCommandLine("mpv --config-dir=/home/$USER/.local/share/cinnamon/applets/BgRadio@spacy01/mpv --title='Magic TV' https://bss1.neterra.tv/magictv/stream_0.m3u8");
291283
Main.notify(_("Watching %s").format(tvstation12));
292284
});
293285

@@ -311,4 +303,4 @@ MyApplet.prototype = {
311303

312304
function main(metadata, orientation, panel_height, instance_id) {
313305
return new MyApplet(orientation, panel_height, instance_id);
314-
};
306+
};

0 commit comments

Comments
 (0)