diff options
author | 2013-10-03 19:21:05 +0200 | |
---|---|---|
committer | 2013-10-03 19:21:05 +0200 | |
commit | a8d3e8341eee6af4c778f512d7f8584c476d49fe (patch) | |
tree | 777681f695f64488c4aa5e869cf937112077befc /pyload/web/pyload_app.py | |
parent | small bug fixes (diff) | |
download | pyload-a8d3e8341eee6af4c778f512d7f8584c476d49fe.tar.xz |
basically working web setup
Diffstat (limited to 'pyload/web/pyload_app.py')
-rw-r--r-- | pyload/web/pyload_app.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pyload/web/pyload_app.py b/pyload/web/pyload_app.py index 1ec7cf4c9..1c89e2ada 100644 --- a/pyload/web/pyload_app.py +++ b/pyload/web/pyload_app.py @@ -70,7 +70,11 @@ def index(): # set variable depending on setup mode setup = 'false' if SETUP is None else 'true' ws = PYLOAD.getWSAddress() if PYLOAD else False - web = PYLOAD.getConfigValue('webinterface', 'port') if PYLOAD else False + web = None + if PYLOAD: + web = PYLOAD.getConfigValue('webinterface', 'port') + elif SETUP: + web = SETUP.config['webinterface']['port'] # Render variables into the html page if resp.status_code == 200: |