diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-01-04 23:58:20 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-01-04 23:58:20 +0100 |
commit | ec17e176f431c1f651a9bd413b3f493aade5bf80 (patch) | |
tree | 56e29a8b48be6eaabb8118bf09a9ad90f608c557 /module | |
parent | [Captcha] parameter decode= is meaningless here (diff) | |
download | pyload-ec17e176f431c1f651a9bd413b3f493aade5bf80.tar.xz |
[Plugin] Update
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Plugin.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index a8ef9b4f2..f84d57105 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -4,24 +4,18 @@ from __future__ import with_statement import inspect import os +import pycurl import re if os.name != "nt": import grp import pwd -import pycurl -try: - import send2trash -except ImportError: - pass - -import module.plugins.internal.misc as utils from module.network.RequestFactory import getRequest as get_request from module.plugins.Plugin import Abort, Fail, Reconnect, Retry, SkipDownload as Skip #@TODO: Remove in 0.4.10 from module.plugins.internal.misc import (Config, DB, decode, encode, exists, fixurl, fsjoin, - format_exc, html_unescape, parse_html_header, set_cookies) + format_exc, html_unescape, parse_html_header, remove, set_cookies) class Plugin(object): @@ -219,7 +213,7 @@ class Plugin(object): #@TODO: Move to network in 0.4.10 if isinstance(decode, basestring): - html = utils.decode(html, decode) + html = decode(html, decode) self.last_html = html |