From 84a935a1d475dee021402e5fb74c645ea43709d0 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Thu, 23 Aug 2012 22:46:06 +0200 Subject: Make the library more thread safe. --- src/livestreamer/plugins/ownedtv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/livestreamer/plugins/ownedtv.py') diff --git a/src/livestreamer/plugins/ownedtv.py b/src/livestreamer/plugins/ownedtv.py index 132dd93..1d2fac4 100644 --- a/src/livestreamer/plugins/ownedtv.py +++ b/src/livestreamer/plugins/ownedtv.py @@ -1,5 +1,5 @@ from livestreamer.compat import urllib, bytes, 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 @@ -93,7 +93,7 @@ class OwnedTV(Plugin): name = streamel.getAttribute("label").lower().replace(" ", "_") playpath = streamel.getAttribute("name") - stream = RTMPStream({ + stream = RTMPStream(self.session, { "rtmp": ("{0}/{1}").format(base, playpath), "live": True, "swfhash": swfhash, @@ -113,4 +113,4 @@ class OwnedTV(Plugin): return streams -register_plugin("own3dtv", OwnedTV) +__plugin__ = OwnedTV -- cgit v1.2.3