diff --git a/docs/plugin_matrix.rst b/docs/plugin_matrix.rst index d4100b89..17d61709 100644 --- a/docs/plugin_matrix.rst +++ b/docs/plugin_matrix.rst @@ -38,6 +38,7 @@ NRK TV Yes Yes Videos may be geo-restricted to Norway. Picarto Yes -- SpeedRunsLive.com Yes -- SVT Play Yes Yes Videos may be geo-restricted to Sweden. + Also supports Öppet arkiv and SVT Flow. Twitch/Justin.tv Yes Yes Possible to authenticate for access to protected streams. UStream TV Yes Yes diff --git a/src/livestreamer/plugins/svtplay.py b/src/livestreamer/plugins/svtplay.py index 1d8dead4..109c6006 100644 --- a/src/livestreamer/plugins/svtplay.py +++ b/src/livestreamer/plugins/svtplay.py @@ -1,3 +1,5 @@ +import re + from livestreamer.exceptions import PluginError from livestreamer.plugin import Plugin from livestreamer.plugin.api import http @@ -11,7 +13,7 @@ class SVTPlay(Plugin): @classmethod def can_handle_url(self, url): - return "svtplay.se" in url or "oppetarkiv.se" in url + return re.match("http(s)?://(www\.)?(svtplay|svtflow|oppetarkiv).se/", url) def _get_streams(self): self.logger.debug("Fetching stream info")