summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-04 18:06:42 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-04 18:06:42 +0200
commit2cf928db10224b5327f918dceaa13273753620ac (patch)
tree2bf7d443308198f170c2b9eff137099467648059 /module/plugins/internal/Plugin.py
parentMerge pull request #1696 from Gutz-Pilz/patch-4 (diff)
downloadpyload-2cf928db10224b5327f918dceaa13273753620ac.tar.xz
Some fixes
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r--module/plugins/internal/Plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index 5f70a292d..7b45c40a8 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.29"
+ __version__ = "0.30"
__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 hasattr(self, 'COOKIES') and isinstance(self.COOKIES, list):
- set_cookies(req.cj, self.COOKIES)
+ if isinstance(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