Valider e17f45c0 rédigé par Thorfin89's avatar Thorfin89
Parcourir les fichiers

Mise à jour des flux radios

parent 823ec4c9
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+9 −9
Numéro de ligne d'origine Ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -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 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 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
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
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
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
Bretagne Blog,DE,Celtic,http://laut.fm/bretagneblog,bretagneblog.png
Highlander Radio Live Stream,DE,Celtic,http://50.7.71.27:9657,Highlander.png
Highlander Radio Live Stream,DE,Celtic,https://jenny.torontocast.com:2000/stream/highlanderradio/stream,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
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
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
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
Celtic-Folk-Punk,DE,Celtic-Folk-Punk,https://streamingp.shoutcast.com/JamendoLounge,celtik-folk-punk.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
 No newline at end of file
+18,8 ko
Chargement de la diff d'image…
+18,8 ko
Chargement de la diff d'image…
+2 −5
Numéro de ligne d'origine Ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -42,19 +42,16 @@ class Radio(Pupitre):
        sauvegarde.write(vol_potar)
        sauvegarde.write(vol_potar)
        sauvegarde.close()
        sauvegarde.close()


    def radio_mute(self):  # coupure du son
    def mute(self):  # coupure du son
        self.player.audio_set_volume(0)
        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
        # on charge configuration sauvegardée
        config_file = open("webradiopi.cfg", "r")
        config_file = open("webradiopi.cfg", "r")
        volume_init = int(config_file.read())
        volume_init = int(config_file.read())
        config_file.close()
        config_file.close()
        self.player.audio_set_volume(volume_init)
        self.player.audio_set_volume(volume_init)


    def test(self, arg):
        print(arg)



app = Radio()  # instancie l'application
app = Radio()  # instancie l'application
app.boucle()
app.boucle()
+4 −2
Numéro de ligne d'origine Ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -110,6 +110,8 @@ class Pupitre:
                            self.logo[num_radio] = tk.PhotoImage(file="images/" + radios_list[num_radio]['Logo'])
                            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
                        else:  # si il n'y a pas de logo pour la radio
                            self.logo[num_radio] = tk.PhotoImage(file="images/radio.png")
                            self.logo[num_radio] = tk.PhotoImage(file="images/radio.png")


                    except:  # quand le nombre de radios est < 20
                    except:  # quand le nombre de radios est < 20
                        self.logo[num_radio] = tk.PhotoImage(file="images/blank.png")
                        self.logo[num_radio] = tk.PhotoImage(file="images/blank.png")


@@ -125,11 +127,11 @@ class Pupitre:
        global mute
        global mute


        if not mute:
        if not mute:
            self.radio_mute()
            self.mute()
            self.btn_mute.config(image=self.icon_mute)  # affichage "logo sound off"
            self.btn_mute.config(image=self.icon_mute)  # affichage "logo sound off"
            mute = True
            mute = True
        else:
        else:
            self.radio_sound()
            self.unmute()
            self.btn_mute.config(image=self.icon_sound)  # affichage "logo sound on"
            self.btn_mute.config(image=self.icon_sound)  # affichage "logo sound on"
            mute = False
            mute = False