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