aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/plugins/svtplay.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/livestreamer/plugins/svtplay.py')
-rw-r--r--src/livestreamer/plugins/svtplay.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/livestreamer/plugins/svtplay.py b/src/livestreamer/plugins/svtplay.py
index d52ae05..3ca85a9 100644
--- a/src/livestreamer/plugins/svtplay.py
+++ b/src/livestreamer/plugins/svtplay.py
@@ -1,5 +1,5 @@
from livestreamer.compat import str
-from livestreamer.plugins import Plugin, PluginError, NoStreamsError, register_plugin
+from livestreamer.plugins import Plugin, PluginError, NoStreamsError
from livestreamer.stream import RTMPStream
from livestreamer.utils import urlget, swfverify, verifyjson
@@ -49,7 +49,7 @@ class SVTPlay(Plugin):
if not ("url" in video and "playerType" in video and video["playerType"] == "flash"):
continue
- stream = RTMPStream({
+ stream = RTMPStream(self.session, {
"rtmp": video["url"],
"pageUrl": self.PageURL,
"swfhash": swfhash,
@@ -61,4 +61,4 @@ class SVTPlay(Plugin):
return streams
-register_plugin("svtplay", SVTPlay)
+__plugin__ = SVTPlay