|
@@ -65,7 +65,7 @@ Accept-Language: en-US,en;q=0.5
|
65
|
65
|
r2 = self.call(data3)
|
66
|
66
|
event = r2["now"]
|
67
|
67
|
title, img, desc = self.get_title_desc(event)
|
68
|
|
- content.append(("Current stream: "+title, self.name+"::"+"streamcurrent.m3u", img, desc))
|
|
68
|
+ content.append(("Current stream: "+title, self.name+"::"+"streamcurrent", img, desc))
|
69
|
69
|
r = self.call("bouquets?stype=tv")
|
70
|
70
|
for item in r["bouquets"]:
|
71
|
71
|
title = item[1]
|
|
@@ -80,7 +80,7 @@ Accept-Language: en-US,en;q=0.5
|
80
|
80
|
r2 = self.call(data3)
|
81
|
81
|
for item in r["services"]:
|
82
|
82
|
title = item["servicename"]
|
83
|
|
- data2 = "stream.m3u?ref=%s&name=%s" % (item["servicereference"], title)
|
|
83
|
+ data2 = "stream?ref=%s&name=%s" % (item["servicereference"], title)
|
84
|
84
|
img = self.img
|
85
|
85
|
desc = title
|
86
|
86
|
for item2 in r2["events"]:
|
|
@@ -110,7 +110,7 @@ Accept-Language: en-US,en;q=0.5
|
110
|
110
|
|
111
|
111
|
def is_video(self,data):
|
112
|
112
|
source,data,path,plist,clist,params,qs = self.parse_data(data)
|
113
|
|
- if clist in ("stream.m3u", "streamcurrent.m3u"):
|
|
113
|
+ if clist in ("stream", "streamcurrent"):
|
114
|
114
|
return True
|
115
|
115
|
else:
|
116
|
116
|
return False
|
|
@@ -128,14 +128,16 @@ Accept-Language: en-US,en;q=0.5
|
128
|
128
|
if not self.is_video(data):
|
129
|
129
|
return []
|
130
|
130
|
source,data,path,plist,clist,params,qs = self.parse_data(data)
|
131
|
|
- if "stream.m3u" in data:
|
132
|
|
- data3 = data.replace("stream.m3u?ref=","epgservicenow?sRef=")
|
133
|
|
- r2 = self.call(data3)
|
134
|
|
- event = r2["events"][0]
|
135
|
|
- else:
|
|
131
|
+ if "streamcurrent" in data:
|
136
|
132
|
data3 = "getcurrent"
|
137
|
133
|
r2 = self.call(data3)
|
138
|
134
|
event = r2["now"]
|
|
135
|
+ data = data.replace("streamcurrent", "streamcurrent.m3u")
|
|
136
|
+ else:
|
|
137
|
+ data3 = data.replace("stream?ref=","epgservicenow?sRef=")
|
|
138
|
+ r2 = self.call(data3)
|
|
139
|
+ event = r2["events"][0]
|
|
140
|
+ data = data.replace("stream", "stream.m3u")
|
139
|
141
|
title, img, desc = self.get_title_desc(event)
|
140
|
142
|
|
141
|
143
|
r = self._http_request(self.url+data)
|