Ivars 6 years ago
parent
commit
f5f667b878
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      sources/lmt.py

+ 16
- 0
sources/lmt.py View File

@@ -187,6 +187,22 @@ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
187 187
             s["img"] = img
188 188
             s["resolver"] = "lmt"
189 189
             return [s]
190
+        elif "//live.tiesraides.lv/lmtstraume.lv" in r:
191
+            m = re.search('<div class="single-video-item video-picture">.+?src="([^"]+)"', r, re.DOTALL)
192
+
193
+            url = "http:" + m.group(1)
194
+            # src="http://cdn.tiesraides.lv/lmtstraume.lv/live-record2-ip/40?c=614127284dcd58d8a84afcf498a3ac7a&v=1405"
195
+            r = self._http_request(url)
196
+            #http://edge-telia2.tiesraides.lv/live-record2/lmtstraume.lv.40_1/manifest.f4m
197
+            m = re.search("'(http://.+?\.m3u8)'",r)
198
+            data2 = m.group(1) if m else ""
199
+            s = util.item()
200
+            s["name"] = title
201
+            s["url"] = data2
202
+            s["desc"] = desc
203
+            s["img"] = img
204
+            s["resolver"] = "lmt"
205
+            return [s]
190 206
         else:
191 207
             raise Exception("No stream found")
192 208