Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WebRadioPi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thorfin89
WebRadioPi
Commits
e7fdb641
Commit
e7fdb641
authored
Jan 29, 2023
by
Thorfin89
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changement de page OK
parent
3a7b9032
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
32 deletions
+39
-32
radios.csv
data/radios.csv
+19
-30
main.py
main.py
+19
-1
webradiopi.cfg
webradiopi.cfg
+1
-1
No files found.
data/radios.csv
View file @
e7fdb641
...
@@ -19,33 +19,22 @@ Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderr
...
@@ -19,33 +19,22 @@ Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderr
Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
Boom FM_Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
Boom FM_Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
Celtic Folk Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
Celtic Folk Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
Radio21,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Live Ireland,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
Radio22,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Radio23,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
Radio24,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
France Bleue Isère,FR,Régionale,http://direct.francebleu.fr/live/fbisere-midfi.mp3,fb-isere.png
Radio25,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
France Bleu Armorique,FR,Régionale,http://direct.francebleu.fr/live/fbarmorique-midfi.mp3,fb-armorique.png
Radio26,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
RTL,FR,Généraliste,http://icecast.rtl.fr/rtl-1-44-128?listen=webCwsBCggNCQgLDQUGBAcGBg,rtl.png
Radio27,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Europe 1,FR,Généraliste,http://stream.europe1.fr/europe1.mp3,europe-1.png
Radio28,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Nostalgie,FR,Divers,http://scdn.nrjaudio.fm/adwz2/fr/30601/mp3_128.mp3?origine=fluxradios,nostalgie.png
Radio29,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Dépèche Mode,UK,Rock,http://streaming.radionomy.com/wwwdepechemodebe-radio,dempechemode.png
Radio30,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
TSF Jazz,FR,Jazz,http://tsfjazz.ice.infomaniak.ch/tsfjazz-high.mp3,tsf-jazz.png
Radio31,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Live Ireland,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
Radio32,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Radio33,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
Radio34,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Radio35,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Highlander Radio,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
Radio36,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
Radio37,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Boom FM_Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
Radio38,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Celtic Folk Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
Radio39,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Live Ireland,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
Radio40,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
\ No newline at end of file
Radio41,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Radio42,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,france-inter.png
Radio43,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio44,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio45,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio46,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio47,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio48,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio49,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
Radio50,FR,Généraliste,http://direct.franceinter.fr/live/franceinter-midfi.mp3,
\ No newline at end of file
main.py
View file @
e7fdb641
...
@@ -55,14 +55,32 @@ class Radio(Pupitre):
...
@@ -55,14 +55,32 @@ class Radio(Pupitre):
def
radio_forward
(
self
):
# passe à la radio suivante
def
radio_forward
(
self
):
# passe à la radio suivante
self
.
num_radio_selected
+=
1
self
.
num_radio_selected
+=
1
if
self
.
num_radio_selected
==
self
.
nb_radios
:
# changement de page automatique
if
self
.
num_radio_selected
%
20
==
0
and
self
.
num_radio_selected
<
self
.
nb_radios
:
# si le numéro est un multiple de 20 et qu'on n'est pas au bout de la liste
self
.
page_forward
()
if
self
.
num_radio_selected
==
self
.
nb_radios
:
# si on arrive à la fin de la liste
self
.
num_radio_selected
=
0
self
.
num_radio_selected
=
0
self
.
current_page
=
0
self
.
mosaique
()
self
.
radio_selected
(
self
.
num_radio_selected
)
self
.
radio_selected
(
self
.
num_radio_selected
)
def
radio_back
(
self
):
# passe à la radio précédente
def
radio_back
(
self
):
# passe à la radio précédente
self
.
num_radio_selected
-=
1
self
.
num_radio_selected
-=
1
print
(
self
.
num_radio_selected
)
# changement de page automatique
if
(
self
.
num_radio_selected
+
1
)
%
20
==
0
and
self
.
num_radio_selected
!=
-
1
:
# si le numéro est un multiple de 20
self
.
page_back
()
if
self
.
num_radio_selected
==
-
1
:
if
self
.
num_radio_selected
==
-
1
:
self
.
num_radio_selected
=
self
.
nb_radios
-
1
self
.
num_radio_selected
=
self
.
nb_radios
-
1
self
.
current_page
=
self
.
nb_pages
self
.
mosaique
()
self
.
radio_selected
(
self
.
num_radio_selected
)
self
.
radio_selected
(
self
.
num_radio_selected
)
def
info_r
(
self
):
def
info_r
(
self
):
...
...
webradiopi.cfg
View file @
e7fdb641
53
70
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment