summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilerNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-22 19:47:00 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-22 19:47:00 +0200
commit1b096b2eb2634e8dea80b06ab9ecde206b198b35 (patch)
treec37727ef1c0c43c553725c6a4ae92022f48bcc23 /module/plugins/hoster/FilerNet.py
parent[Keep2shareCC] Fix CAPTCHA_PATTERN (diff)
downloadpyload-1b096b2eb2634e8dea80b06ab9ecde206b198b35.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilerNet.py')
-rw-r--r--module/plugins/hoster/FilerNet.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py
index 6d62dfde8..7a8d49378 100644
--- a/module/plugins/hoster/FilerNet.py
+++ b/module/plugins/hoster/FilerNet.py
@@ -18,7 +18,7 @@ class FilerNet(SimpleHoster):
__type__ = "hoster"
__version__ = "0.07"
- __pattern__ = r'https?://(?:www\.)?filer\.net/get/(\w+)'
+ __pattern__ = r'https?://(?:www\.)?filer\.net/get/\w+'
__description__ = """Filer.net hoster plugin"""
__license__ = "GPLv3"
@@ -35,8 +35,7 @@ class FilerNet(SimpleHoster):
# Wait between downloads
m = re.search(r'musst du <span id="time">(\d+)</span> Sekunden warten', self.html)
if m:
- waittime = int(m.group(1))
- self.retry(3, waittime, "Wait between free downloads")
+ self.retry(wait_time=int(m.group(1)), reason="Wait between free downloads")
self.html = self.load(self.pyfile.url, decode=True)