diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-04-21 21:57:20 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-04-21 21:57:20 +0200 |
commit | 22dd8a40c8bb9c1c7e845a47df5b84dfe2a8527e (patch) | |
tree | 2a60947960ccd89fd19ad45e992545dc8454ba8b /src/livestreamer/__init__.py | |
parent | e3b3bdf86e9e9921ce6c76e8dd587dbe0b41f33e (diff) |
Added PluginError exception to make error handling nicer.
Also added a utility function to do HTTP requests.
Diffstat (limited to 'src/livestreamer/__init__.py')
-rw-r--r-- | src/livestreamer/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/livestreamer/__init__.py b/src/livestreamer/__init__.py index 6a0b463..9eb2264 100644 --- a/src/livestreamer/__init__.py +++ b/src/livestreamer/__init__.py @@ -16,4 +16,7 @@ def resolve_url(url): def get_plugins(): return plugins.get_plugins() + +PluginError = plugins.PluginError + plugins.load_plugins(plugins) |