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
e17f45c0
Commit
e17f45c0
authored
Jan 18, 2023
by
Thorfin89
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mise à jour des flux radios
parent
823ec4c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
radios.csv
data/radios.csv
+9
-9
celtic-folk-punk.png
images/Large/celtic-folk-punk.png
+0
-0
kaqzblcby8nh.png
images/Large/kaqzblcby8nh.png
+0
-0
main.py
main.py
+2
-5
pupitre.py
pupitre.py
+4
-2
No files found.
data/radios.csv
View file @
e17f45c0
...
...
@@ -5,17 +5,17 @@ France Bleue Auxerre,FR,Régionale,http://direct.francebleu.fr/live/fbauxerre-mi
France Bleue Isère,FR,Régionale,http://direct.francebleu.fr/live/fbisere-midfi.mp3,fb-isere.png
France Bleu Armorique,FR,Régionale,http://direct.francebleu.fr/live/fbarmorique-midfi.mp3,fb-armorique.png
France Info,FR,Informations,http://direct.franceinfo.fr/live/franceinfo-midfi.mp3,france-info.png
RTL,FR,Généraliste,http://icecast.rtl.fr/rtl-1-44-128?listen=webCwsBCggNCQgLDQUGBAcGBg,rtl.png
Europe 1,FR,Généraliste,http://stream.europe1.fr/europe1.mp3,europe-1.png
Nostalgie,FR,Divers,http://scdn.nrjaudio.fm/adwz2/fr/30601/mp3_128.mp3?origine=fluxradios,nostalgie.png
Dépèche Mode,UK,Rock,http://streaming.radionomy.com/wwwdepechemodebe-radio,dempechemode.png
TSF Jazz,FR,Jazz,http://tsfjazz.ice.infomaniak.ch/tsfjazz-high.mp3,tsf-jazz.png
Jazz Radio,FR,Jazz,http://jazzradio.ice.infomaniak.ch/jazzradio-high.mp3,jazz-radio.png
Live Ireland ch1,DE,Celtic,http://192.111.140.11:8058/stream?type=http&nocache=51282,live-ireland.png
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Highlander Radio Live Stream,DE,Celtic,http://50.7.71.27:9657,Highlander.png
Celtic Moon,DE,Celtic,http://streaming211.radionomy.com:80/CelticMoon,
DE,Celtic-punk,Celtic-Folk-Punk,http://streaming211.radionomy.com:80/Celtic-Folk-Punk,celtik-folk-punk.png
DE,Hard-rock,100% Hardrock,http://streaming207.radionomy.com:80/100-HARD-ROCK,100-hard-rock.png
Highlander Radio Live Stream,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,Highlander.png
Virgin Rock 70,DE,Rock,http://icy.unitedradio.it/VirginRock70.mp3,virginrock70.png
Jazz Radio,FR,Jazz,http://jazzradio.ice.infomaniak.ch/jazzradio-high.mp3,jazz-radio.png
TSF Jazz,FR,Jazz,http://tsfjazz.ice.infomaniak.ch/tsfjazz-high.mp3,tsf-jazz.png
Boom FM Ottawa,CA,Rock,http://live.leanstream.co/CJOTFM-MP3,boom-ottawa.png
Europe 1,FR,Généraliste,http://mp3lg4.tdf-cdn.com/9240/lag_180945.mp3,europe-1.png
RTL,FR,Généraliste,http://streaming.radio.rtl.fr/rtl-1-48-192,rtl.png
Nostalgie,FR,Divers,http://scdn.nrjaudio.fm/adwz2/fr/30601/mp3_128.mp3?origine=fluxradios,nostalgie.png
\ No newline at end of file
Celtic-Folk-Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.png
,,,,
,,,,
\ No newline at end of file
images/Large/celtic-folk-punk.png
0 → 100644
View file @
e17f45c0
18.8 KB
images/Large/kaqzblcby8nh.png
0 → 100644
View file @
e17f45c0
18.8 KB
main.py
View file @
e17f45c0
...
...
@@ -42,19 +42,16 @@ class Radio(Pupitre):
sauvegarde
.
write
(
vol_potar
)
sauvegarde
.
close
()
def
radio_
mute
(
self
):
# coupure du son
def
mute
(
self
):
# coupure du son
self
.
player
.
audio_set_volume
(
0
)
def
radio_sound
(
self
):
# rétablissement du son
def
unmute
(
self
):
# rétablissement du son
# on charge configuration sauvegardée
config_file
=
open
(
"webradiopi.cfg"
,
"r"
)
volume_init
=
int
(
config_file
.
read
())
config_file
.
close
()
self
.
player
.
audio_set_volume
(
volume_init
)
def
test
(
self
,
arg
):
print
(
arg
)
app
=
Radio
()
# instancie l'application
app
.
boucle
()
pupitre.py
View file @
e17f45c0
...
...
@@ -110,6 +110,8 @@ class Pupitre:
self
.
logo
[
num_radio
]
=
tk
.
PhotoImage
(
file
=
"images/"
+
radios_list
[
num_radio
][
'Logo'
])
else
:
# si il n'y a pas de logo pour la radio
self
.
logo
[
num_radio
]
=
tk
.
PhotoImage
(
file
=
"images/radio.png"
)
except
:
# quand le nombre de radios est < 20
self
.
logo
[
num_radio
]
=
tk
.
PhotoImage
(
file
=
"images/blank.png"
)
...
...
@@ -125,11 +127,11 @@ class Pupitre:
global
mute
if
not
mute
:
self
.
radio_
mute
()
self
.
mute
()
self
.
btn_mute
.
config
(
image
=
self
.
icon_mute
)
# affichage "logo sound off"
mute
=
True
else
:
self
.
radio_sound
()
self
.
unmute
()
self
.
btn_mute
.
config
(
image
=
self
.
icon_sound
)
# affichage "logo sound on"
mute
=
False
...
...
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