Server=localhost
Port=8000
ServerPassword=source2parisson
-ServerMountpoint=/Pre-Barreau_-_ICP_-_CRFPA_-_TEST.mp3
+ServerMountpoint=/Pre-Barreau_-_ICP_-_CRFPA_-_undefined.mp3
ServerPublic=0
AutomaticReconnectSecs=10
Encode=MP3 Lame
ExternalFile=/tmp/test
#YP Settings
ServerStreamURL=http://www.pre-barreau.com
-ServerName=Pre-Barreau_-_ICP_-_CRFPA_-_TEST
-ServerDescription=Pre-Barreau_-_ICP_-_CRFPA_-_TEST_-_1_-_GIUSTINIANI_G._-_2e_corrections
+ServerName=Pre-Barreau_-_ICP_-_CRFPA_-_undefined
+ServerDescription=Pre-Barreau_-_ICP_-_CRFPA_-_undefined_-_1_-_MEUNIER_J._-_2e_corrections
ServerGenre=Teaching
#Advanced Settings
LogLevel=1
Conference.__init__(self, conference_dict)
self.date = datetime.datetime.now().strftime("%Y")
self.time = datetime.datetime.now().strftime("%x-%X")
- self.time = self.time.replace('/','_')
- self.time = self.time.replace(':','_')
+ self.time1 = self.time.replace('/','_')
+ self.time2 = self.time1.replace(':','_')
+ self.time = self.time2.replace(' ','_')
self.conf = xml2dict(conf_file)
self.conf = self.conf['telecaster']
self.root_dir = self.conf['server']['root_dir']
time.sleep(1)
date = datetime.datetime.now().strftime("%Y")
if os.path.exists(self.file_dir) and os.path.exists(self.file_dir + os.sep + 'incomplete'):
- shutil.move(self.file_dir+os.sep+'incomplete'+os.sep+' - .'+self.format, self.file_dir+os.sep)
- shutil.rmtree(self.file_dir+os.sep+'incomplete'+os.sep)
+ shutil.copy(self.file_dir+os.sep+'incomplete'+os.sep+' - .'+self.format, self.file_dir+os.sep)
os.rename(self.file_dir+os.sep+' - .'+self.format, self.file_dir+os.sep+self.filename)
+ shutil.rmtree(self.file_dir+os.sep+'incomplete'+os.sep)
def mp3_convert(self):
os.system('oggdec -o - '+ self.file_dir+os.sep+self.filename+' | lame -S -m m -h -b '+ self.bitrate + \
#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']