diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-06 22:24:17 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-06 22:24:17 +0200 |
commit | cac52bbf8b0e928a83a29b744bff20240c8e7354 (patch) | |
tree | b53689d1269f95dfda758879e7206d1c20cb5012 /module/plugins/hoster/FreakshareCom.py | |
parent | closed #147 (diff) | |
download | pyload-cac52bbf8b0e928a83a29b744bff20240c8e7354.tar.xz |
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
-rw-r--r-- | module/plugins/hoster/FreakshareCom.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py index 524081002..bbc22ac98 100644 --- a/module/plugins/hoster/FreakshareCom.py +++ b/module/plugins/hoster/FreakshareCom.py @@ -23,10 +23,16 @@ class FreakshareCom(Hoster): def process(self, pyfile): pyfile.url = pyfile.url.replace("freakshare.net/","freakshare.com/") - self.prepare() - self.get_file_url() + if self.account: + self.html = self.load(pyfile.url, cookies=False) + pyfile.name = self.get_file_name() + self.download(pyfile.url) - self.download(self.pyfile.url, post=self.req_opts) + else: + self.prepare() + self.get_file_url() + + self.download(self.pyfile.url, post=self.req_opts) def prepare(self): @@ -48,7 +54,6 @@ class FreakshareCom(Hoster): return True def download_html(self): - url = self.pyfile.url.replace("freakshare.net/","freakshare.com/") self.html = self.load(url, cookies=True) def get_file_url(self): |