diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-10 10:46:04 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-10 10:46:04 +0200 |
commit | aa2db98aab37450a20b3640cf5df0e12236acaec (patch) | |
tree | b945b44a4609e1d7f6c9a1c15146d5349e3d1e7a | |
parent | Update plugins (2) (diff) | |
download | pyload-aa2db98aab37450a20b3640cf5df0e12236acaec.tar.xz |
Fix https://github.com/pyload/pyload/issues/1473
-rw-r--r-- | module/plugins/internal/Plugin.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index e1de48f72..228685ee5 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -31,6 +31,7 @@ if os.name != "nt": from itertools import islice +from module.plugins.Plugin import Abort, Fail, Reconnect, Retry, SkipDownload from module.utils import save_join, save_path, fs_encode, fs_decode def chunks(iterable, size): @@ -41,26 +42,6 @@ def chunks(iterable, size): item = list(islice(it, size)) -class Abort(Exception): - """ raised when aborted """ - - -class Fail(Exception): - """ raised when failed """ - - -class Reconnect(Exception): - """ raised when reconnected """ - - -class Retry(Exception): - """ raised when start again from beginning """ - - -class SkipDownload(Exception): - """ raised when download should be skipped """ - - class Base(object): """ A Base class with log/config/db methods *all* plugin types can use @@ -142,7 +123,7 @@ class Plugin(Base): Overwrite `process` / `decrypt` in your subclassed plugin. """ __name__ = "Plugin" - __version__ = "0.04" + __version__ = "0.05" __pattern__ = None __type__ = "hoster" __config__ = [("name", "type", "desc", "default")] |