diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-08-03 20:27:55 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-08-03 20:27:55 +0200 |
commit | f2416468c89af6064b07ee51384818502ae54b05 (patch) | |
tree | 1434a9b2b898b6e948e576c09438908f8a5f013b | |
parent | Merge pull request #1670 from GammaC0de/patch-2 (diff) | |
download | pyload-f2416468c89af6064b07ee51384818502ae54b05.tar.xz |
Update Plugin.py
-rw-r--r-- | module/plugins/internal/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 99b5751e5..7d1fea1e3 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -146,7 +146,7 @@ def chunks(iterable, size): class Plugin(object): __name__ = "Plugin" __type__ = "hoster" - __version__ = "0.28" + __version__ = "0.29" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -334,7 +334,7 @@ class Plugin(object): req = self.req or self.pyload.requestFactory.getRequest(self.__name__) #@TODO: Move to network in 0.4.10 - if isinstance(self.COOKIES, list): + if hasattr(self, COOKIES) and isinstance(self.COOKIES, list): set_cookies(req.cj, cookies) res = req.load(url, get, post, ref, bool(cookies), just_header, multipart, decode is True) #@TODO: Fix network multipart in 0.4.10 |