diff --git a/src/streamlink/plugins/albavision.py b/src/streamlink/plugins/albavision.py index 61dc99430e3..a88449cccce 100644 --- a/src/streamlink/plugins/albavision.py +++ b/src/streamlink/plugins/albavision.py @@ -94,9 +94,9 @@ def _get_live_url(self): schema = validate.Schema( validate.xml_xpath_string(".//script[contains(text(), 'LIVE_URL')]/text()"), validate.none_or_all( - re.compile(r"""LIVE_URL\s*=\s*(?P['"])(.+?)(?P=q)"""), + re.compile(r"""LIVE_URL\s*=\s*(?P['"])(?P.+?)(?P=q)"""), validate.none_or_all( - validate.get(1), + validate.get("url"), validate.url(), ), ), @@ -109,9 +109,9 @@ def _get_token_req_url(self): schema = validate.Schema( validate.xml_xpath_string(".//script[contains(text(), 'LIVE_URL')]/text()"), validate.none_or_all( - re.compile(r"""jQuery\.get\s*\((?P['"])(.+?)(?P=q)"""), + re.compile(r"""jQuery\.get\s*\((?P['"])(?P.+?)(?P=q)"""), validate.none_or_all( - validate.get(1), + validate.get("token"), validate.url(), ), ), @@ -122,8 +122,8 @@ def _get_token_req_url(self): schema = validate.Schema( validate.xml_xpath_string(".//script[contains(text(), 'LIVE_URL')]/text()"), validate.none_or_all( - re.compile(r"""Math\.floor\(Date\.now\(\)\s*/\s*3600000\),\s*(?P['"])(.+?)(?P=q)"""), - validate.none_or_all(validate.get(1)), + re.compile(r"""Math\.floor\(Date\.now\(\)\s*/\s*3600000\),\s*(?P['"])(?P.+?)(?P=q)"""), + validate.none_or_all(validate.get("token")), ), ) token_req_str = schema.validate(self.page) diff --git a/src/streamlink/plugins/hiplayer.py b/src/streamlink/plugins/hiplayer.py index 46c68f2658a..d2aaec4e843 100644 --- a/src/streamlink/plugins/hiplayer.py +++ b/src/streamlink/plugins/hiplayer.py @@ -38,8 +38,11 @@ def _get_streams(self): validate.parse_html(), validate.xml_xpath_string(".//script[contains(text(), 'https://hiplayer.hibridcdn.net/l/')]/text()"), validate.none_or_all( - re.compile(r"""(?P['"])(https://hiplayer.hibridcdn.net/l/.+?)(?P=q)"""), - validate.none_or_all(validate.get(1), validate.url()), + re.compile(r"""(?P['"])(?Phttps://hiplayer.hibridcdn.net/l/.+?)(?P=q)"""), + validate.none_or_all( + validate.get("url"), + validate.url(), + ), ), ), ) diff --git a/src/streamlink/plugins/htv.py b/src/streamlink/plugins/htv.py index 9184cb68781..0690378f64d 100644 --- a/src/streamlink/plugins/htv.py +++ b/src/streamlink/plugins/htv.py @@ -80,8 +80,11 @@ def _get_streams(self): validate.parse_html(), validate.xml_xpath_string(".//script[contains(text(), 'playlist.m3u8')]/text()"), validate.none_or_all( - re.compile(r"""var\s+iosUrl\s*=\s*(?P")(.+?)(?P=q)"""), - validate.none_or_all(validate.get(1), validate.url()), + re.compile(r"""var\s+iosUrl\s*=\s*(?P")(?P.+?)(?P=q)"""), + validate.none_or_all( + validate.get("url"), + validate.url(), + ), ), ), )