Commit e17f45c0 authored by Thorfin89's avatar Thorfin89

Mise à jour des flux radios

parent 823ec4c9
......@@ -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
......@@ -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()
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment