Skip to content

Commit

Permalink
plugins.svtplay: Add support for SVT Flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrippa committed Apr 24, 2014
1 parent 0469135 commit 65a3dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/plugin_matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/livestreamer/plugins/svtplay.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import re

from livestreamer.exceptions import PluginError
from livestreamer.plugin import Plugin
from livestreamer.plugin.api import http
Expand All @@ -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")
Expand Down

0 comments on commit 65a3dc6

Please sign in to comment.