summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-22 22:14:47 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-22 22:14:47 +0100
commitf531393337b58e570c2b23f63275b883506cb92c (patch)
tree4850bb1cf1a80aee9cc52185d00ced333f126c5f /module/plugins/internal
parentUpdate plugins after CaptchaService changes (diff)
downloadpyload-f531393337b58e570c2b23f63275b883506cb92c.tar.xz
[SimpleDereferer][SimpleHoster] Fix https://github.com/pyload/pyload/issues/1065
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleDereferer.py3
-rw-r--r--module/plugins/internal/SimpleHoster.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleDereferer.py b/module/plugins/internal/SimpleDereferer.py
index 35ac09b70..72d61d4a0 100644
--- a/module/plugins/internal/SimpleDereferer.py
+++ b/module/plugins/internal/SimpleDereferer.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import fileUrl, set_cookies
class SimpleDereferer(Crypter):
__name__ = "SimpleDereferer"
__type__ = "crypter"
- __version__ = "0.04"
+ __version__ = "0.05"
__pattern__ = r'^unmatchable$'
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
@@ -77,6 +77,7 @@ class SimpleDereferer(Crypter):
def preload(self):
+ self.req.renewHTTPRequest() #@NOTE: Remove in 0.4.10
self.html = self.load(self.pyfile.url, cookies=bool(self.COOKIES), decode=not self.TEXT_ENCODING)
if isinstance(self.TEXT_ENCODING, basestring):
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 819572a7e..13a26c732 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -246,7 +246,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "1.06"
+ __version__ = "1.07"
__pattern__ = r'^unmatchable$'
@@ -453,6 +453,7 @@ class SimpleHoster(Hoster):
def preload(self):
+ self.req.renewHTTPRequest() #@NOTE: Remove in 0.4.10
self.html = self.load(self.pyfile.url, cookies=bool(self.COOKIES), decode=not self.TEXT_ENCODING)
if isinstance(self.TEXT_ENCODING, basestring):