]> git.parisson.com Git - telecaster-cgi.git/commitdiff
* Remove date from metadata
authoryomguy <yomguy@parisson.com>
Fri, 25 Jul 2008 15:08:49 +0000 (15:08 +0000)
committeryomguy <yomguy@parisson.com>
Fri, 25 Jul 2008 15:08:49 +0000 (15:08 +0000)
* Fix null fieds

etc/telecaster_mp3.cfg
telecaster.py

index bf828122bda7582ce8034e8adc19202fed1a8a61..f065c94a2fed71a3043fbd84b1e3767907e3e9a0 100644 (file)
@@ -1,7 +1,7 @@
 Server=localhost
 Port=8000
 ServerPassword=source2parisson
-ServerMountpoint=/Pre-Barreau_-_ICP_-_AE_-_Adm_Correction.mp3
+ServerMountpoint=/Pre-Barreau_-_ICP_-_FJP_-_TEST.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_-_AE_-_Adm_Correction
-ServerDescription=Pre-Barreau_-_ICP_-_AE_-_Adm_Correction_-_2_-_MARINHO_A._-_1er_cours
+ServerName=Pre-Barreau_-_ICP_-_FJP_-_TEST
+ServerDescription=Pre-Barreau_-_ICP_-_FJP_-_TEST_-_1_-_GIUSTINIANI_G._-_1er_cours
 ServerGenre=Teaching
 #Advanced Settings
 LogLevel=1
index 3e4f3797974642a9b07bd82ca070ea2ed04041a3..42ca1947b0421418413fbab121f4ce902f3e2eed 100755 (executable)
@@ -185,7 +185,7 @@ class Station(Conference):
     def write_tags_mp3(self):
        file = self.file_dir + os.sep + self.filename
        if os.path.exists(file):
-            os.system('mp3info -t "a" '+file)
+            os.system('mp3info -t "a" -a "a" '+file)
             audio = ID3(file)
             #tag = tags.__dict__['TITLE']
             audio.add(TIT2(encoding=3, text=self.new_title))
@@ -194,12 +194,13 @@ class Station(Conference):
             #tag = tags.__dict__['ALBUM']
             audio.add(TAL(encoding=3, text=self.title))
             #tag = tags.__dict__['DATE']
-            audio.add(TDA(encoding=3, text=self.date))
+            #audio.add(TDA(encoding=3, text=self.date))
             #tag = tags.__dict__['GENRE']
             audio.add(TCO(encoding=3, text=self.genre))
             #tag = tags.__dict__['COMMENT']
-            audio.add(COM(encoding=3, text=self.comment))
+            #audio.add(COM(encoding=3, text=self.comment))
             audio.save()
+           time.sleep(2)
 
     def start(self):
         self.set_lock()