summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FreakshareCom.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-06-10 13:09:33 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2011-06-10 13:09:33 +0200
commita40cf88920e94490d5c851fb273b8d2f48aef6fb (patch)
tree8de448bbf50535901a35a26c2a145403ed166107 /module/plugins/hoster/FreakshareCom.py
parenternieb's rapidshare patch (diff)
downloadpyload-a40cf88920e94490d5c851fb273b8d2f48aef6fb.tar.xz
ernieb's hoster patches
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
-rw-r--r--module/plugins/hoster/FreakshareCom.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py
index 795cafadf..1c4e04dee 100644
--- a/module/plugins/hoster/FreakshareCom.py
+++ b/module/plugins/hoster/FreakshareCom.py
@@ -81,12 +81,15 @@ class FreakshareCom(Hoster):
def get_waiting_time(self):
if self.html is None:
self.download_html()
-
+
if "Der Traffic f\xc3\xbcr heute ist verbraucht!" in self.html or "Your Traffic is used up for today" in self.html:
self.wantReconnect = True
return 24*3600
-
- timestring = re.search('\s*var\stime\s=\s(\d*?)\.\d*;', self.html).group(1)
+
+ if re.search(r"This file does not exist!", self.html) is not None:
+ self.offline()
+
+ timestring = re.search('\s*var\sdownloadWait\s=\s(\d*);', self.html).group(1)
if timestring:
sec = int(timestring) + 1 #add 1 sec as tenths of seconds are cut off
else: