Browse Source

papildus pārbaude vai kanāls ir kešā

Ivars 4 years ago
parent
commit
c020014a4d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ltcproxy.py

+ 1
- 1
ltcproxy.py View File

110
     global s, token, headers0
110
     global s, token, headers0
111
     path0, rest = hls_split(request.url)
111
     path0, rest = hls_split(request.url)
112
     response.content_type = "application/x-mpegURL" # r.headers["content-type"] # 'application/vnd.apple.mpegurl' # application/x-mpegURL
112
     response.content_type = "application/x-mpegURL" # r.headers["content-type"] # 'application/vnd.apple.mpegurl' # application/x-mpegURL
113
-    if "c"+ch in s:
113
+    if "c"+ch in s and  "m"+ch in s:
114
         stream_url2 = s["c"+ch]
114
         stream_url2 = s["c"+ch]
115
         mediaid = s["m"+ch]
115
         mediaid = s["m"+ch]
116
         print "** %s: serving live playlist for %s (%s) from cache" % (request.remote_addr,path0,mediaid )
116
         print "** %s: serving live playlist for %s (%s) from cache" % (request.remote_addr,path0,mediaid )