|
@@ -572,9 +572,11 @@ X-Requested-With: XMLHttpRequest
|
572
|
572
|
|
573
|
573
|
def get_streams(self, data):
|
574
|
574
|
print "[ltc] get_streams:", data
|
575
|
|
- if "::" in data: data = data.split("::")[1]
|
576
|
575
|
if not self.is_video(data):
|
577
|
576
|
return []
|
|
577
|
+ source, data, path, plist, clist, params, qs = self.parse_data(data)
|
|
578
|
+ #if "::" in data: data = data.split("::")[1]
|
|
579
|
+
|
578
|
580
|
|
579
|
581
|
### Video nomas strīmus pagaidām dabu no mājas lapas TODO
|
580
|
582
|
if data.split("/")[0]=="videonoma" and len(data.split("/"))>1:
|
|
@@ -584,6 +586,18 @@ X-Requested-With: XMLHttpRequest
|
584
|
586
|
if not self.is_logedin():
|
585
|
587
|
if not self.login():
|
586
|
588
|
return []
|
|
589
|
+ if plist[1] == "catchup":
|
|
590
|
+ start = int(qs["start"]) + 1
|
|
591
|
+ #url = "https://manstv.lattelecom.tv/api/v1.7/get/content/epgs/?filter[channel]=101&filter[utFrom]=1551551500&include=channel&page[size]=40page[number]=1"
|
|
592
|
+ data2 = "content/epgs/?filter[channel]=%s&filter[utFrom]=%s&filter[utTo]=%s&include=channel&page[size]=40page[number]=1" % (plist[2], start, start )
|
|
593
|
+ r2 = self.call(data2)
|
|
594
|
+ if "data" in r2:
|
|
595
|
+ epgid = r2["data"][0]["id"]
|
|
596
|
+ else:
|
|
597
|
+ return []
|
|
598
|
+ data = "ltc::content/record-streams/%s?include=quality" % epgid
|
|
599
|
+ source, data, path, plist, clist, params, qs = self.parse_data(data)
|
|
600
|
+
|
587
|
601
|
r = self.call(data)
|
588
|
602
|
if not r: return []
|
589
|
603
|
if "errors" in r:
|
|
@@ -652,7 +666,7 @@ X-Requested-With: XMLHttpRequest
|
652
|
666
|
cmd = data.split("/")
|
653
|
667
|
if "get-stream" in data:
|
654
|
668
|
return True
|
655
|
|
- elif cmd[0] in ("content") and cmd[1] in ("live-streams","record-streams","vod-streams"):
|
|
669
|
+ elif cmd[0] in ("content") and cmd[1] in ("live-streams","record-streams","vod-streams", "catchup"):
|
656
|
670
|
return True
|
657
|
671
|
elif cmd[0]=="arhivs" and len(cmd)==4:
|
658
|
672
|
return True
|