|
@@ -129,7 +129,15 @@ Accept-Language: en-US,en;q=0.5
|
129
|
129
|
if not m:
|
130
|
130
|
raise Exception("No streams found!")
|
131
|
131
|
data2 = m.group(1)
|
132
|
|
- title, img, desc = self.get_title_desc(r["events"][0])
|
|
132
|
+ if "stream.m3u" in data:
|
|
133
|
+ data3 = data.replace("stream.m3u?ref=","epgservicenow?sRef=")
|
|
134
|
+ r2 = self.call(data3)
|
|
135
|
+ event = r2["events"][0]
|
|
136
|
+ else:
|
|
137
|
+ data3 = "getcurrent"
|
|
138
|
+ r2 = self.call(data3)
|
|
139
|
+ event = r2["now"]
|
|
140
|
+ title, img, desc = self.get_title_desc(event)
|
133
|
141
|
stream = util.item()
|
134
|
142
|
stream["name"] = title
|
135
|
143
|
stream["url"] = data2
|