|
1 | 1 | import re |
2 | 2 |
|
3 | | -from livestreamer.compat import urljoin |
4 | | -from livestreamer.plugin import Plugin |
5 | | -from livestreamer.plugin.api import http, validate |
6 | | -from livestreamer.plugin.api.utils import parse_json |
7 | | -from livestreamer.stream import AkamaiHDStream, HLSStream |
| 3 | +from streamlink.compat import urljoin |
| 4 | +from streamlink.plugin import Plugin |
| 5 | +from streamlink.plugin.api import http, validate |
| 6 | +from streamlink.plugin.api.utils import parse_json |
| 7 | +from streamlink.stream import AkamaiHDStream, HLSStream |
8 | 8 |
|
9 | 9 | _url_re = re.compile("http(s)?://(www\.)?livestream.com/") |
10 | 10 | _stream_config_schema = validate.Schema({ |
|
22 | 22 | ), |
23 | 23 | }, None) |
24 | 24 | }, |
25 | | - validate.optional("viewerPlusSwfUrl"): validate.url(scheme="http"), |
26 | | - validate.optional("lsPlayerSwfUrl"): validate.text, |
27 | | - validate.optional("hdPlayerSwfUrl"): validate.text |
| 25 | + validate.optional("playerUri"): validate.text |
28 | 26 | }) |
29 | 27 | _smil_schema = validate.Schema(validate.union({ |
30 | 28 | "http_base": validate.all( |
@@ -95,7 +93,7 @@ def _get_streams(self): |
95 | 93 |
|
96 | 94 | play_url = stream_info.get("play_url") |
97 | 95 | if play_url: |
98 | | - swf_url = info.get("hdPlayerSwfUrl") or info.get("lsPlayerSwfUrl") or info.get("viewerPlusSwfUrl") |
| 96 | + swf_url = info.get("playerUri") |
99 | 97 | if swf_url: |
100 | 98 | if not swf_url.startswith("http"): |
101 | 99 | swf_url = "http://" + swf_url |
|
0 commit comments