diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-05-24 15:07:03 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-05-24 15:07:03 +0200 |
commit | e4c07414d077964613da5b7870a49f0882f703b1 (patch) | |
tree | e370b20faff00c33db6914e6c744b7b75ff55e96 /src/livestreamer/plugins/justintv.py | |
parent | 5afb1f0917214697045c904c6af4fe2ddf43818f (diff) |
Add more plugin exceptions.
Diffstat (limited to 'src/livestreamer/plugins/justintv.py')
-rw-r--r-- | src/livestreamer/plugins/justintv.py | 4 |
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) |