aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/plugins/justintv.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-24 15:07:03 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-24 15:07:03 +0200
commite4c07414d077964613da5b7870a49f0882f703b1 (patch)
treee370b20faff00c33db6914e6c744b7b75ff55e96 /src/livestreamer/plugins/justintv.py
parent5afb1f0917214697045c904c6af4fe2ddf43818f (diff)
Add more plugin exceptions.
Diffstat (limited to 'src/livestreamer/plugins/justintv.py')
-rw-r--r--src/livestreamer/plugins/justintv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py
index 620db63..43e343c 100644
--- a/src/livestreamer/plugins/justintv.py
+++ b/src/livestreamer/plugins/justintv.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-from livestreamer.plugins import Plugin, PluginError, register_plugin
+from livestreamer.plugins import Plugin, PluginError, NoStreamsError, register_plugin
from livestreamer.stream import RTMPStream
from livestreamer.utils import swfverify, urlget
from livestreamer.compat import urllib, str
@@ -125,7 +125,7 @@ class JustinTV(Plugin):
channelname = self._get_channel_name(self.url)
if not channelname:
- return {}
+ raise NoStreamsError(self.url)
return self._get_streaminfo(channelname)