summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.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/SimpleHoster.py
parentMerge pull request #1696 from Gutz-Pilz/patch-4 (diff)
downloadpyload-2cf928db10224b5327f918dceaa13273753620ac.tar.xz
Some fixes
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index e2cc21ed8..8d4100026 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -23,7 +23,7 @@ statusMap = dict((v, k) for k, v in _statusMap.items())
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "1.78"
+ __version__ = "1.79"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -221,9 +221,6 @@ class SimpleHoster(Hoster):
self.req.setOption("timeout", 120)
- if hasattr(self, 'COOKIES') and isinstance(self.COOKIES, list):
- set_cookies(self.req.cj, self.COOKIES)
-
if self.LINK_PATTERN:
if not hasattr(self, 'LINK_FREE_PATTERN'):
self.LINK_FREE_PATTERN = self.LINK_PATTERN
@@ -250,7 +247,7 @@ class SimpleHoster(Hoster):
def preload(self):
self.html = self.load(self.pyfile.url,
- cookies=bool(self.COOKIES),
+ cookies=self.COOKIES,
ref=False,
decode=self.TEXT_ENCODING)