* not = -> != *correct links in electronic * add some doc user.rst * add http prefix feature

This commit is contained in:
antonl05 2022-02-26 20:17:55 +05:30
parent e4d1c7ede3
commit e130f8c685
4 changed files with 93 additions and 60 deletions

View file

@ -1,24 +1,36 @@
{
"pnimrp": [
"Ambient Sleeping Pill",
"http://50.7.96.138:8235/stream",
"Ibiza Global Radio",
"http://37.59.254.25:8024",
"Radio Seven",
"http://188.65.152.205:80",
"Antenne Bayern Chillout",
"http://mp3channels.webradio.antenne.de:80/chillout",
"Frisky",
"http://stream.friskyradio.com:8000/frisky_mp3_hi",
"Nirvana Radio",
"http://91.121.134.15:9106",
"Puls Radio",
"http://212.83.185.51:80"
]
}
{
"pnimrp": [
"AH.FM -data",
"http://ca.ah.fm/48k",
"AH.FM -high",
"http://ca.ah.fm",
"Ambient Sleeping Pill",
"http://radio.stereoscenic.com/asp-s",
"Ibiza Global Radio",
"http://ibizaglobalradio.streaming-pro.com:8024",
"Radio Seven",
"http://80.86.106.32:8000/radio7.mp3",
"Antenne Bayern Chillout",
"stream.antenne.de/chillout",
//"Frisky",
//"",
"Nirvana Radio",
"http://streaming.exclusive.radio/er/nirvana/icecast.audio",
"Puls Radio",
"http://icecast.pulsradio.com/pulsHD.mp3",
"Puls Radio - Club",
"http://icecast.pulsradio.com/mxHD.mp3",
"Puls Radio - Trance",
"http://icecast.pulsradio.com/pulstranceHD.mp3"
]
}

View file

@ -1,33 +1,33 @@
{
"pnimrp": [
"ANTENNE BAYERN Oldies but Goldies",
"http://mp3channels.webradio.antenne.de:80/oldies-but-goldies",
"E.P. Express Radio",
"http://37.187.79.56:9246",
"Flower Power Radio",
"http://50.7.129.122:8433",
"Rewound Radio",
"http://71.125.37.66:8000",
"FUN45s",
"http://198.178.123.20:8376",
"Oldies 104",
"http://66.85.88.2:7142",
"Oldie Party",
"http://212.48.110.146:8410",
"Oldiesradio RGR",
"http://streams.lazernet.be:2620",
"Pure Gold 95FM",
"http://198.178.123.20:8374",
"Vinylgodis",
"http://89.236.16.230:8000"
]
}
{
"pnimrp": [
"ANTENNE BAYERN Oldies but Goldies",
"http://stream.antenne.de/oldie-antenne",
"E.P. Express Radio",
"http://37.187.79.56:9246",
"Flower Power Radio",
"http://50.7.129.122:8433",
"Rewound Radio",
"http://71.125.37.66:8000",
"FUN45s",
"http://198.178.123.20:8376",
"Oldies 104",
"http://66.85.88.2:7142",
"Oldie Party",
"http://212.48.110.146:8410",
"Oldiesradio RGR",
"http://streams.lazernet.be:2620",
"Pure Gold 95FM",
"http://198.178.123.20:8374",
"Vinylgodis",
"http://89.236.16.230:8000"
]
}

View file

@ -7,6 +7,8 @@ Table Of Contents
-----------------
* Supported Platforms
* Controls
* Links
* Qoutes
Supported Platforms
-------------------
@ -29,3 +31,18 @@ Controls
General Controls are using given numbers or characters to select the menu.
where R would return and q would quit out of the application.
and when stream is being played, use p to pause/mute or play.
Links
-----
Editing Links is just to look at the relevant file in assets directory.
the files are arranged in an json array and has to be even as it should have
name and link latter last respectively.
.. note::
you have the choice to put http:// or not
Qoutes
------
you can edit qoutes in assets/qoute.json.
- qoute first, author name second
- array should be even

View file

@ -99,7 +99,7 @@ proc sayIter*(txt: seq[string]) =
inc num
proc warn*(txt:string; x = -1) =
if not(x == -1): setCursorXPos x
if x != -1: setCursorXPos x
styledEcho fgRed,txt
#if echo == false: stdout.styledWrite fgRed,txt
#default Args dosent seem to be working?
@ -134,7 +134,7 @@ proc exec*(x:string,args:openArray[string]; stream = false) =
)
proc exit(ctx:ptr handle, isPaused: bool) =
if not(isPaused):
if not isPaused:
terminateDestroy ctx
exitEcho()
@ -232,7 +232,11 @@ proc menu*(sub, file: string; sect = "") =
for f in input.low .. input.high:
case f mod 2:
of 0: n.add input[f]
of 1: l.add input[f]
of 1:
if input[f].startsWith "http":
l.add input[f]
else:
l.add "http://" & input[f]
else: discard
while true: