summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FreakshareCom.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-10-13 20:34:19 +0200
committerGravatar Jeix <devnull@localhost> 2010-10-13 20:34:19 +0200
commitbe28952d0328539918a079a3625bf01d679769ed (patch)
treee389b8ef1e916d424de5bf23c63b1746b2800672 /module/plugins/hoster/FreakshareCom.py
parentcnl standalone server (diff)
downloadpyload-be28952d0328539918a079a3625bf01d679769ed.tar.xz
work and reap, work and sleep, freakshare, shareonline, shragle
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
-rw-r--r--module/plugins/hoster/FreakshareCom.py10
1 files changed, 9 insertions, 1 deletions
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"<input\stype=\".*?\"\svalue=\"(\S*?)\".*?name=\"(\S*?)\"\s.*?\/>", 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]))