|
@@ -57,7 +57,7 @@ slinks = {}
|
57
|
57
|
sessions = {}
|
58
|
58
|
|
59
|
59
|
cfg_file = "streams.cfg"
|
60
|
|
-sources = ContentSources("sources", cfg_file)
|
|
60
|
+sources = ContentSources("", cfg_file)
|
61
|
61
|
|
62
|
62
|
class StreamHandler(BaseHTTPRequestHandler):
|
63
|
63
|
|
|
@@ -404,18 +404,13 @@ def hls_base2(url):
|
404
|
404
|
rest = url.replace(base, "")
|
405
|
405
|
return base
|
406
|
406
|
|
407
|
|
-print streamproxy_encode3("get_content", "ltc::home", qs={"user": "ivars777", "password": "Kaskade7"})
|
408
|
|
-print streamproxy_encode3("get_content", "ltc::content/live-streams/101?include=quality", qs={"user": "ivars777", "password": "Kaskade7"})
|
409
|
|
-urlp = streamproxy_encode3("playstream",
|
410
|
|
- "ltc::content/live-streams/101?include=quality",
|
411
|
|
- #headers=headers0,
|
412
|
|
- qs={"user": "ivars777", "password": "Kaskade7"})
|
413
|
|
-print urlp
|
414
|
|
-print streamproxy_encode3("playstream", "replay::tiesraide/ltv1")
|
415
|
|
-print streamproxy_encode3("playstream", "tvdom::tiesraides/ltv1/")
|
416
|
|
-print streamproxy_encode3("playstream", "tvplay::asset/10311641")
|
417
|
|
-print streamproxy_encode3("playstream", "xtv::rigatv24/video/Zw4pVPqr7OX-festivals_mainam_pasauli_sakam_ar_sevi")
|
418
|
|
-print streamproxy_encode3("playstream", "iplayer::episodes/b094f49s")
|
|
407
|
+
|
|
408
|
+#print urlp
|
|
409
|
+#print streamproxy_encode3("playstream", "replay::tiesraide/ltv1")
|
|
410
|
+#print streamproxy_encode3("playstream", "tvdom::tiesraides/ltv1/")
|
|
411
|
+#print streamproxy_encode3("playstream", "tvplay::asset/10311641")
|
|
412
|
+#print streamproxy_encode3("playstream", "xtv::rigatv24/video/Zw4pVPqr7OX-festivals_mainam_pasauli_sakam_ar_sevi")
|
|
413
|
+#print streamproxy_encode3("playstream", "iplayer::episodes/b094f49s")
|
419
|
414
|
#cmd, data, headers, qs = streamproxy_decode3(urlp)
|
420
|
415
|
|
421
|
416
|
if __name__ == "__main__":
|