]> git.parisson.com Git - telecaster-server.git/commitdiff
Fix url links
authoryomguy <>
Thu, 9 Oct 2008 14:18:37 +0000 (14:18 +0000)
committeryomguy <>
Thu, 9 Oct 2008 14:18:37 +0000 (14:18 +0000)
etc/telecaster_mp3.cfg
telecaster.py

index 0cbcd933016414220898d9dde417d81e35b6fd53..ed72e65b0ec5e16b5398d73df47b2abd9233dcb6 100644 (file)
@@ -1,7 +1,7 @@
 Server=localhost
 Port=8000
 ServerPassword=source2parisson
-ServerMountpoint=/Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours.mp3
+ServerMountpoint=/Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Corrections.mp3
 ServerPublic=0
 AutomaticReconnectSecs=10
 Encode=MP3 Lame
@@ -13,8 +13,8 @@ ServerType=Icecast2
 ExternalFile=/tmp/test
 #YP Settings
 ServerStreamURL=http://www.pre-barreau.com
-ServerName=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours
-ServerDescription=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Cours_-_2_-_MARINHO_A._-_1er_cours
+ServerName=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Corrections
+ServerDescription=Pre-Barreau_-_ICP_-_CRFPA_-_Droit_administratif_Corrections_-_2_-_MARINHO_A._-_1er_cours
 ServerGenre=Teaching
 #Advanced Settings
 LogLevel=1
index 2c5907a175447d8d1df73d5a52271106fafd967a..a8496557db515f7085bfcd96cd6e8c6549141f12 100755 (executable)
@@ -273,7 +273,9 @@ class WebView:
     def __init__(self, school_file):
         self.conf = xml2dict(school_file)
         self.conf = self.conf['telecaster']
-        self.url = self.conf['url']
+       self.interface = 'eth0'
+       self.ip = get_ip_address(self.interface)
+        self.url = 'http://' + self.ip
         self.port = self.conf['port']
         self.format = self.conf['format']
         self.title = self.conf['title']