From: yomguy Date: Sun, 8 Jun 2008 22:55:58 +0000 (+0000) Subject: * Cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7b4e87652275108770dcb75255faf0c4d6cccae1;p=telecaster-cgi.git * Cleanup --- diff --git a/etc/default_conferences.xml b/etc/default_conferences.xml index c450d20..fdc552a 100644 --- a/etc/default_conferences.xml +++ b/etc/default_conferences.xml @@ -1,15 +1,15 @@ http://localhost - School Example + Example University 8000 Audio - Conference 1 + Recording - Conference 2 + Broadcasting @@ -17,10 +17,10 @@ Computer - Conference 1 + Languages - Conference 2 + Open source systems @@ -28,21 +28,21 @@ Physics - Conference 1 + Mechanics - Conference 2 + Acoustics - Sociology + Ethnology - Conference 1 + Ethomusicology - Conference 1 + Documentation diff --git a/etc/default_courses.xml b/etc/default_courses.xml deleted file mode 100644 index c450d20..0000000 --- a/etc/default_courses.xml +++ /dev/null @@ -1,49 +0,0 @@ - - http://localhost - School Example - 8000 - - Audio - - - Conference 1 - - - Conference 2 - - - - - Computer - - - Conference 1 - - - Conference 2 - - - - - Physics - - - Conference 1 - - - Conference 2 - - - - - Sociology - - - Conference 1 - - - Conference 1 - - - - diff --git a/etc/pre-barreau_courses.xml b/etc/pre-barreau_courses.xml deleted file mode 100644 index f0b17ac..0000000 --- a/etc/pre-barreau_courses.xml +++ /dev/null @@ -1,205 +0,0 @@ - - http://augustins.pre-barreau.com - Augustins - Pré-Barreau - 8000 - - - CRFPA - - - Liberté publiques - Cours - - - Note de synthèse - Corrections - - - Droit civil - Cours - - - Droit civil - Corrections - - - Procédure administrative et contentieuse - Cours - - - Procédure administrative et contentieuse - Corrections - - - Procédure civile - Cours - - - Procédure civile - Corrections - - - Procédure pénale - Cours - - - Procédure pénale - Corrections - - - Droit commercial des affaires - Cours - - - Droit commercial des affaires - Corrections - - - Droit communautaire et européen - Cours - - - Droit communautaire et européen - Corrections - - - Droit fiscal - Cours - - - Droit fiscal - Corrections - - - Droit pénal - Cours - - - Droit pénal - Corrections - - - Droit de la famille et des personnes - Cours - - - Droit de la famille et des personnes - Corrections - - - Droit patrimonial - Cours - - - Droit patrimonial - Corrections - - - Droit du travail - Cours - - - Droit du travail - Corrections - - - Droit administratif - Cours - - - Droit administratif - Corrections - - - Droit public des activités économiques - Cours - - - Droit public des activités économiques - Corrections - - - Droit international privé - Cours - - - Droit international privé - Corrections - - - Procédures collectives et sûretés - Cours - - - Procédures collectives et sûretés - Corrections - - - Procédure communautaire - Cours - - - Procédures civile d'exécution - Cours - - - Comptabilité privée - Cours - - - Finances publiques - Cours - - - REUNION - - - TEST - - - - - - AE - - - Administratif_Cours - - - Adm_Correction - - - Civil_Correction - - - Commercial_Correctio - - - Commercial_Cours - - - Deontologie_Cours - - - Droit civil - Cours - - - Methodo_Oraux - - - Penal_Correction - - - Penal_Cours - - - Procedures_Cours - - - Reunion_info - - - Social_Corrections - - - Social_Cours - - - REUNION - - - TEST - - - - - - ENM - - - TEST - - - REUNION - - - - - - - FJP - - - TEST - - - REUNION - - - - - diff --git a/etc/teleoddcast.cfg b/etc/teleoddcast.cfg index e5695ab..2da2913 100644 --- a/etc/teleoddcast.cfg +++ b/etc/teleoddcast.cfg @@ -1,7 +1,7 @@ Server=localhost Port=8000 ServerPassword=source2parisson -ServerMountpoint=/Default_School_-_Computer_-_Conference_1.ogg +ServerMountpoint=/Default_School_-_Computer_-_Conference_2.ogg ServerPublic=0 AutomaticReconnectSecs=10 Encode=OggVorbis @@ -10,11 +10,11 @@ NumberChannels=1 OggQuality=1 Samplerate=44100 ServerType=Icecast2 -ExternalFile=/home/pre-barreau/augustins/audio/ +ExternalFile=/tmp #YP Settings ServerStreamURL=http://www.pre-barreau.com -ServerName=Default_School_-_Computer_-_Conference_1 -ServerDescription=Default_School_-_Computer_-_Conference_1_-_1_-_azefdoj_-_azef +ServerName=Default_School_-_Computer_-_Conference_2 +ServerDescription=Default_School_-_Computer_-_Conference_2_-_2_-_azfpoh_-_opij ServerGenre=Teaching #Advanced Settings LogLevel=1 diff --git a/teleoddcast.py b/teleoddcast.py index 230cb8d..6507106 100755 --- a/teleoddcast.py +++ b/teleoddcast.py @@ -188,11 +188,8 @@ class Station(Conference): args = ' '.join(args) command = 'sox "%s" -q -w -r 44100 -t wav -c2 - | lame %s -' \ % (source, args) - # Processing (streaming + cache writing) - e = ExporterCore() - stream = e.core_process(self.command,self.buffer_size,self.dest) - + stream = self.core_process(self.command,self.buffer_size,self.dest) for chunk in stream: yield chunk @@ -209,7 +206,6 @@ class Station(Conference): close_fds = True) except: raise ExportProcessError('Command failure:', command, proc) - # Core processing while True: __chunk = proc.stdout.read(buffer_size) @@ -221,7 +217,8 @@ class Station(Conference): yield __chunk file_out.write(__chunk) file_out.close() - + + class WebView: """Gives the web CGI frontend""" @@ -239,10 +236,10 @@ class WebView: def header(self): # Required header that tells the browser how to render the HTML. - print "Content-Type: text/html\n\n" + print "Content-Type: text/html\n" print "" print "" - print "\t"+self.title+"" + print "TeleOddCast - "+self.title+"" print "" print '