From 1e432ba70e1a59e93e6d2c3db03b7d9257999342 Mon Sep 17 00:00:00 2001 From: estaban Date: Mon, 3 Aug 2015 18:11:22 +0200 Subject: Update Plugin.py Hi, With commit e5ce0acf056dc96c40d5616ab6d2b82f998eefbe titled "Use set_cookie instead cj.setCookie", COOKIES attribute in Plugin class does not necessarily exist anymore, unfortunately it is used in module/plugins/internal/Plugin.py#337. Therefore it breaks loading many plugins like UpdateManager, Mega.Co.Nz... --- module/plugins/internal/Plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/internal/Plugin.py') diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 99b5751e5..2e65dae29 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -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 -- cgit v1.2.3