summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-10-13 17:18:17 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-10-13 17:18:17 +0200
commitecf0d8b21ce205d997fb2a3e652cfae46a2c962d (patch)
tree4ad52bb44783121e24d31d57baf76e820856394f /module/plugins/internal
parentBayfiles: fixed #308 (diff)
downloadpyload-ecf0d8b21ce205d997fb2a3e652cfae46a2c962d.tar.xz
SimpleHoster: improved 0.4.9 cookie bug workaround
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleHoster.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 640d129b8..56e9a6a3f 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -146,7 +146,7 @@ class PluginParseError(Exception):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
- __version__ = "0.29"
+ __version__ = "0.30"
__pattern__ = None
__type__ = "hoster"
__description__ = """Base hoster plugin"""
@@ -187,6 +187,8 @@ class SimpleHoster(Hoster):
if self.premium and (not self.SH_CHECK_TRAFFIC or self.checkTrafficLeft()):
self.handlePremium()
else:
+ # This line is required due to the getURL workaround. Can be removed in 0.5
+ self.html = self.load(pyfile.url, decode=not self.SH_BROKEN_ENCODING, cookies=self.SH_COOKIES)
self.handleFree()
def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=False):