Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef34769

Browse files
committed
Revert "Latest fix to plugin from livestreamer"
This reverts commit b420f6c.
1 parent 8f40b99 commit ef34769

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/streamlink/plugins/livestream.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import re
22

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
88

99
_url_re = re.compile("http(s)?://(www\.)?livestream.com/")
1010
_stream_config_schema = validate.Schema({
@@ -22,9 +22,7 @@
2222
),
2323
}, None)
2424
},
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
2826
})
2927
_smil_schema = validate.Schema(validate.union({
3028
"http_base": validate.all(
@@ -95,7 +93,7 @@ def _get_streams(self):
9593

9694
play_url = stream_info.get("play_url")
9795
if play_url:
98-
swf_url = info.get("hdPlayerSwfUrl") or info.get("lsPlayerSwfUrl") or info.get("viewerPlusSwfUrl")
96+
swf_url = info.get("playerUri")
9997
if swf_url:
10098
if not swf_url.startswith("http"):
10199
swf_url = "http://" + swf_url

0 commit comments

Comments
 (0)