1
mirror of https://github.com/streamlink/streamlink synced 2024-11-01 01:19:33 +01:00

Merge pull request #1879 from back-to/EuropaPlusTV

plugins.EuropaPlusTV: Fix for "No connection adapters were found"
This commit is contained in:
Forrest 2018-06-29 11:32:39 -07:00 committed by GitHub
commit 3e11800551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ from streamlink.plugin import Plugin
from streamlink.plugin.api import http from streamlink.plugin.api import http
from streamlink.plugin.api.utils import itertags from streamlink.plugin.api.utils import itertags
from streamlink.stream import HLSStream from streamlink.stream import HLSStream
from streamlink.utils import update_scheme
class EuropaPlusTV(Plugin): class EuropaPlusTV(Plugin):
@ -24,6 +25,7 @@ class EuropaPlusTV(Plugin):
m = self.src_re.search(iframe_res.text) m = self.src_re.search(iframe_res.text)
surl = m and m.group("url") surl = m and m.group("url")
if surl: if surl:
surl = update_scheme(self.url, surl)
self.logger.debug("Found stream URL: {0}".format(surl)) self.logger.debug("Found stream URL: {0}".format(surl))
return HLSStream.parse_variant_playlist(self.session, surl) return HLSStream.parse_variant_playlist(self.session, surl)