summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FreakshareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-06 18:57:55 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-06 18:57:55 +0200
commit0072668fd976f9ce4dbaac7e807791f21cbe07ed (patch)
tree473ef27784ac8f7f2001bdca159852cf3be74ec2 /module/plugins/hoster/FreakshareCom.py
parent[UpdateManager] Little code cleanup + improved threading (diff)
downloadpyload-0072668fd976f9ce4dbaac7e807791f21cbe07ed.tar.xz
Compute wait time using secondsToMidnight
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
-rw-r--r--module/plugins/hoster/FreakshareCom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py
index ad9abeb96..5b043d53d 100644
--- a/module/plugins/hoster/FreakshareCom.py
+++ b/module/plugins/hoster/FreakshareCom.py
@@ -1,7 +1,9 @@
# -*- coding: utf-8 -*-
import re
+
from module.plugins.Hoster import Hoster
+from module.plugins.hoster.UnrestrictLi import secondsToMidnight
from module.plugins.internal.CaptchaService import ReCaptcha
@@ -9,7 +11,7 @@ class FreakshareCom(Hoster):
__name__ = "FreakshareCom"
__type__ = "hoster"
__pattern__ = r'http://(?:www\.)?freakshare\.(net|com)/files/\S*?/'
- __version__ = "0.38"
+ __version__ = "0.39"
__description__ = """Freakshare.com hoster plugin"""
__author_name__ = ("sitacuisses", "spoob", "mkaay", "Toilal")
__author_mail__ = ("sitacuisses@yahoo.de", "spoob@pyload.org", "mkaay@mkaay.de", "toilal.dev@gmail.com")
@@ -122,7 +124,7 @@ class FreakshareCom(Hoster):
if "Your Traffic is used up for today" in self.html:
self.wantReconnect = True
- return 24 * 60 * 60
+ return secondsToMidnight(gmt=2)
timestring = re.search('\s*var\s(?:downloadWait|time)\s=\s(\d*)[.\d]*;', self.html)
if timestring: