|
@@ -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 )
|