瀏覽代碼

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

Ivars 4 年之前
父節點
當前提交
c020014a4d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ltcproxy.py

+ 1
- 1
ltcproxy.py 查看文件

@@ -110,7 +110,7 @@ def get_live(key, ch):
110 110
     global s, token, headers0
111 111
     path0, rest = hls_split(request.url)
112 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 114
         stream_url2 = s["c"+ch]
115 115
         mediaid = s["m"+ch]
116 116
         print "** %s: serving live playlist for %s (%s) from cache" % (request.remote_addr,path0,mediaid )