From 67a775b1a554c6e20190e4917c875515216c1c6e Mon Sep 17 00:00:00 2001 From: yomguy <> Date: Fri, 19 Nov 2010 16:27:29 +0000 Subject: [PATCH] fix bad status during broadcasting --- webview.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/webview.py b/webview.py index 01f9a5a..c277d91 100644 --- a/webview.py +++ b/webview.py @@ -181,6 +181,11 @@ class WebView(FieldStorage): else: jackd_info = 'On' + if self.casting: + casting = 'On' + else: + casting = 'OFF' + print "
" print "
Status
" print "" @@ -202,6 +207,8 @@ class WebView(FieldStorage): pass print "" print "" % jackd_info + print "" + print "" % casting print "" print "" print "" print "
JACK audio server : %s
Encoder : %s
" if self.writing: print "" @@ -210,10 +217,10 @@ class WebView(FieldStorage): print "
" - if self.casting: - print "" + if not self.ip == 'localhost' and self.writing: + print "" else: - print "" + print "" print "
" print "
" @@ -283,6 +290,7 @@ class WebView(FieldStorage): self.sub_header() self.hardware_data() + print "
" print "
" print "" print "" @@ -294,7 +302,6 @@ class WebView(FieldStorage): print "
Titre : "+self.title+"
" print "
" print "
" - print "" print "
" print "" print "\"\"Play" @@ -302,8 +309,8 @@ class WebView(FieldStorage): print "\"\"Archives" print "\"\"Trash" print "
" - print "" print "
" + print "" self.colophon() self.footer() -- 2.39.5