From be28952d0328539918a079a3625bf01d679769ed Mon Sep 17 00:00:00 2001 From: Jeix Date: Wed, 13 Oct 2010 20:34:19 +0200 Subject: work and reap, work and sleep, freakshare, shareonline, shragle --- module/plugins/hoster/FreakshareCom.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster/FreakshareCom.py') diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py index bbc22ac98..441bdcd8f 100644 --- a/module/plugins/hoster/FreakshareCom.py +++ b/module/plugins/hoster/FreakshareCom.py @@ -21,6 +21,7 @@ class FreakshareCom(Hoster): self.req_opts = [] def process(self, pyfile): + self.pyfile = pyfile pyfile.url = pyfile.url.replace("freakshare.net/","freakshare.com/") if self.account: @@ -54,7 +55,7 @@ class FreakshareCom(Hoster): return True def download_html(self): - self.html = self.load(url, cookies=True) + self.html = self.load(self.pyfile.url, cookies=True) def get_file_url(self): """ returns the absolute downloadable filepath @@ -112,9 +113,16 @@ class FreakshareCom(Hoster): herewego = self.load(self.pyfile.url, None, request_options, cookies=True) # the actual download-Page + # comment this in, when it doesnt work + # with open("DUMP__FS_.HTML", "w") as fp: + # fp.write(herewego) + to_sort = re.findall(r"", herewego) request_options = [] + # comment this in, when it doesnt work as well + #print "\n\n%s\n\n" % ";".join(["%s=%s" % x for x in to_sort]) + for item in to_sort: #Same as above request_options.append((item[1], item[0])) -- cgit v1.2.3