diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-08-23 22:46:06 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-08-23 22:46:06 +0200 |
commit | 84a935a1d475dee021402e5fb74c645ea43709d0 (patch) | |
tree | a629f40635c749d8b40a111639cb076aad60c157 /src/livestreamer/plugins/svtplay.py | |
parent | 27cb39360357e41bfaa8a5667708898294e5127d (diff) |
Make the library more thread safe.
Diffstat (limited to 'src/livestreamer/plugins/svtplay.py')
-rw-r--r-- | src/livestreamer/plugins/svtplay.py | 6 |
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 |