|
@@ -37,14 +37,15 @@ cache_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "cache")
|
37
|
37
|
if not os.path.exists(cache_dir):
|
38
|
38
|
os.mkdir(cache_dir)
|
39
|
39
|
|
|
40
|
+CFG_FILE = "ltcproxy.cfg" # TODO - iespēja uzdot kā parametru
|
40
|
41
|
config = ConfigParser.ConfigParser()
|
41
|
|
-proxy_cfg_file = os.path.join(cur_directory, "ltcproxy.cfg")
|
|
42
|
+proxy_cfg_file = os.path.join(cur_directory, CFG_FILE)
|
42
|
43
|
|
43
|
44
|
DEBUG = False
|
44
|
45
|
PORT_NUMBER = 8881
|
45
|
46
|
REDIRECT = False
|
46
|
47
|
CACHE = True
|
47
|
|
-KEY = ["1234","3786"]
|
|
48
|
+KEY = ["0000","00000"]
|
48
|
49
|
SERVER = "wsgiref"
|
49
|
50
|
WORKERS = 10
|
50
|
51
|
LTC_USER = "user"
|
|
@@ -441,6 +442,7 @@ def get_epg(ch, start):
|
441
|
442
|
# Run WSGI server
|
442
|
443
|
def start(server,port):
|
443
|
444
|
print "*** Starting ltcproxy ***"
|
|
445
|
+ print "LTC_USER: %s"% LTC_USER
|
444
|
446
|
options = {}
|
445
|
447
|
if server == "mtwsgi":
|
446
|
448
|
import mtwsgi
|