summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar imclem <clem@macbook-clem.local> 2013-03-10 21:17:58 +0100
committerGravatar imclem <clem@macbook-clem.local> 2013-03-10 21:17:58 +0100
commit99897087dd0de751f61bfe0f5b8f0fab49ca78b0 (patch)
tree8d34f3a4341da51c163c13cf00297734e1b6c99e /module/plugins/hoster
parentNew hoster: Tusfiles.net (diff)
downloadpyload-99897087dd0de751f61bfe0f5b8f0fab49ca78b0.tar.xz
Fixed OneFichierCom.py from userplugins.
OneFichierCom.py from userplugins in home directory was failing at downloading multiple files. When the first file was downloaded the plugin was'nt handling the waiting time. This was due tu the fact that the sentence in the web page saying to wait has changed. I just modified the sentence to make the plugin wait correctly before or between each download.
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/OneFichierCom.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index 3a4ff7275..70ffc13ad 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -19,8 +19,7 @@ class OneFichierCom(SimpleHoster):
DOWNLOAD_LINK_PATTERN = r'<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;\s+<a href="(?P<url>http://.*?)"'
PASSWORD_PROTECTED_TOKEN = "protected by password"
- WAITING_PATTERN = "you must wait (\d+) minutes"
-
+ WAITING_PATTERN = "Warning ! Without premium status, you can download only one file at a time and you must wait at least (\d+) minutes between each downloads."
def process(self, pyfile):
found = re.search(self.__pattern__, pyfile.url)
file_id = found.group(2)