mirror of
https://github.com/streamlink/streamlink
synced 2024-09-28 13:05:55 +02:00
plugins.tvtoya: minor fixes
- update url_re for www. and literal dot escaping - remove unnecessary update_scheme()
This commit is contained in:
parent
e9663fdfc3
commit
da0bfe9353
@ -3,13 +3,12 @@ import re
|
||||
|
||||
from streamlink.plugin import Plugin
|
||||
from streamlink.stream import HLSStream
|
||||
from streamlink.utils import update_scheme
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class TVToya(Plugin):
|
||||
_url_re = re.compile(r"https?://tvtoya.pl/live")
|
||||
_url_re = re.compile(r"https?://(?:www\.)?tvtoya\.pl/live")
|
||||
_playlist_re = re.compile(r'<source src="([^"]+)" type="application/x-mpegURL">')
|
||||
|
||||
@classmethod
|
||||
@ -22,10 +21,7 @@ class TVToya(Plugin):
|
||||
playlist_m = self._playlist_re.search(res.text)
|
||||
|
||||
if playlist_m:
|
||||
return HLSStream.parse_variant_playlist(
|
||||
self.session,
|
||||
update_scheme(self.url, playlist_m.group(1)),
|
||||
)
|
||||
return HLSStream.parse_variant_playlist(self.session, playlist_m.group(1))
|
||||
else:
|
||||
log.debug("Could not find stream data")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user