summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSPHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-20 12:59:27 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-20 12:59:27 +0200
commit4e0e93fe8a9c9a98f3f299afacf07fbc855ef88b (patch)
treee230f8d4e17bfc716f6e78a078d5d568502a3600 /module/plugins/internal/XFSPHoster.py
parentFix download resume feature (diff)
downloadpyload-4e0e93fe8a9c9a98f3f299afacf07fbc855ef88b.tar.xz
Preload self.html
Diffstat (limited to 'module/plugins/internal/XFSPHoster.py')
-rw-r--r--module/plugins/internal/XFSPHoster.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py
index 0b656c67c..14c8302e1 100644
--- a/module/plugins/internal/XFSPHoster.py
+++ b/module/plugins/internal/XFSPHoster.py
@@ -75,12 +75,13 @@ class XFSPHoster(SimpleHoster):
self.errmsg = None
self.passwords = self.getPassword().splitlines()
+ url = self.pyfile.url = replace_patterns(self.pyfile.url, self.FILE_URL_REPLACEMENTS)
+ self.html = getURL(url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES)
+
def process(self, pyfile):
self.prepare()
- pyfile.url = replace_patterns(pyfile.url, self.FILE_URL_REPLACEMENTS)
-
if not re.match(self.__pattern__, pyfile.url):
if self.premium:
self.handleOverriden()
@@ -88,10 +89,6 @@ class XFSPHoster(SimpleHoster):
self.fail("Only premium users can download from other hosters with %s" % self.HOSTER_NAME)
else:
try:
- # Due to a 0.4.9 core bug self.load would use cookies even if
- # cookies=False. Workaround using getURL to avoid cookies.
- # Can be reverted in 0.4.10 as the cookies bug has been fixed.
- self.html = getURL(pyfile.url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES)
self.file_info = self.getFileInfo()
except Fail:
self.file_info = None