diff options
author | 2015-08-03 23:58:29 +0200 | |
---|---|---|
committer | 2015-08-03 23:58:29 +0200 | |
commit | 2fccfd7d93cbd34fff027b8bf6ed6d0ff6c87ce1 (patch) | |
tree | c97931554842b0c921671b4c7f122f0a3596576b /module/plugins/internal/Plugin.py | |
parent | Merge pull request #1670 from GammaC0de/patch-2 (diff) | |
parent | Update Plugin.py (diff) | |
download | pyload-2fccfd7d93cbd34fff027b8bf6ed6d0ff6c87ce1.tar.xz |
Merge pull request #1685 from GammaC0de/patch-2
Object has no attribute 'COOKIES'
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 99b5751e5..5f70a292d 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,8 +334,8 @@ 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): - set_cookies(req.cj, cookies) + if hasattr(self, 'COOKIES') and isinstance(self.COOKIES, list): + set_cookies(req.cj, self.COOKIES) res = req.load(url, get, post, ref, bool(cookies), just_header, multipart, decode is True) #@TODO: Fix network multipart in 0.4.10 |