summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar philou75 <admin@pju.fr> 2014-12-12 22:49:23 +0100
committerGravatar philou75 <admin@pju.fr> 2014-12-12 22:49:23 +0100
commitc9b4f3b9a78904d34d7e58593eacdc26b93c2562 (patch)
tree598d1c92a279a1c8209d88fa9bd84a235b8a1aae /module/plugins/hoster
parent[DebridItaliaCom] Typo fixup (diff)
downloadpyload-c9b4f3b9a78904d34d7e58593eacdc26b93c2562.tar.xz
Make the waiting time work again on OneFichier.com
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/OneFichierCom.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index 977d45b6f..b5e034c0b 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class OneFichierCom(SimpleHoster):
__name__ = "OneFichierCom"
__type__ = "hoster"
- __version__ = "0.74"
+ __version__ = "0.75"
__pattern__ = r'https?://(?:www\.)?(?:(?P<ID1>\w+)\.)?(?P<HOST>1fichier\.com|alterupload\.com|cjoint\.net|d(es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?(?P<ID2>\w+))?'
@@ -30,7 +30,7 @@ class OneFichierCom(SimpleHoster):
COOKIES = [("1fichier.com", "LG", "en")]
- WAIT_PATTERN = r'>You must wait (\d+)'
+ WAIT_PATTERN = r'>You must wait (\d+) minutes'
def setup(self):
@@ -39,13 +39,6 @@ class OneFichierCom(SimpleHoster):
def handle(self, reconnect):
- m = re.search(self.WAIT_PATTERN, self.html)
- if m:
- wait_time = int(m.group(1)) * 60
-
- self.wait(wait_time, reconnect)
- self.retry(reason="You have to wait been each free download")
-
id = self.info['pattern']['ID1'] or self.info['pattern']['ID2']
url, inputs = self.parseHtmlForm('action="https://1fichier.com/\?%s' % id)