<teleoddcast>
<url>http://augustins.pre-barreau.com</url>
- <title>Augustins - Pre-Barreau</title>
+ <title>Augustins - Pré-Barreau</title>
<port>8000</port>
+
<department>
<name>CRFPA</name>
<courses>
</department>
</teleoddcast>
+:q!
\ No newline at end of file
Server=localhost
Port=8000
ServerPassword=source2parisson
-ServerMountpoint=/My_station_-_CRFPA_-_Procedure_civile_-_Cours.ogg
+ServerMountpoint=/Default_School_-_Audio_-_Course_2.ogg
ServerPublic=0
AutomaticReconnectSecs=10
Encode=OggVorbis
ExternalFile=/home/pre-barreau/augustins/audio/
#YP Settings
ServerStreamURL=http://www.pre-barreau.com
-ServerName=My_station_-_CRFPA_-_Procedure_civile_-_Cours_-_1
-ServerDescription=My_station_-_CRFPA_-_Procedure_civile_-_Cours_-_1_-_rth_-_rtjh
+ServerName=Default_School_-_Audio_-_Course_2_-_1
+ServerDescription=Default_School_-_Audio_-_Course_2_-_1_-_azd_-_azd
ServerGenre=Teaching
#Advanced Settings
LogLevel=1
os.system(command)
def stop_oddcast(self):
- os.system('kill -9 ' + self.odd_pid[0])
+ if self.odd_pid[0]:
+ os.system('kill -9 ' + self.odd_pid[0])
def stop_rip(self):
- #print self.rip_pid[0]
- os.system('kill -9 ' + self.rip_pid[0])
+ if self.rip_pid[0]:
+ os.system('kill -9 ' + self.rip_pid[0])
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'):
print "\t\t<TR><TH align=\"left\">Commentaire :</TH><TD>"+comment+"</TD><TR>"
print "\t</TABLE>"
print "<hr>"
- print "<h5><a href=\""+self.url+":"+self.port+"/"+clean_string(self.title)+"_-_"+clean_string(department)+"_-_"+clean_string(course)+".ogg.m3u\">Cliquez ici pour écouter cette formation en direct</a></h5>"
+ print "<h5><a href=\""+self.url+":"+self.port+"/"+clean_string(self.title) + \
+ "_-_"+clean_string(department)+"_-_"+clean_string(course) + \
+ ".ogg.m3u\">Cliquez ici pour écouter cette formation en direct</a></h5>"
print "</div>"
print "<div id=\"tools\">"
print "\t<INPUT TYPE = hidden NAME = \"action\" VALUE = \"stop\">"
class TeleOddCast:
+ """Manage the calls of Station and Webview to get the network and
+ disk streams"""
def __init__(self, conf_file, school_file):
"""Main function"""
# Call main function.
conf_file = 'etc/teleoddcast.xml'
-school_file = 'etc/localhost.xml'
+school_file = 'etc/default_courses.xml'
if __name__ == '__main__':
t = TeleOddCast(conf_file, school_file)