diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-01 23:28:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-01 23:28:59 +0200 |
commit | e5e233b45f2ce7bc98618d61d1b75bce34d4add4 (patch) | |
tree | 9ca2017e72c276077f89a30d67d3cc9ba707de32 | |
parent | [OneFichierCom] Bump version number (diff) | |
download | pyload-e5e233b45f2ce7bc98618d61d1b75bce34d4add4.tar.xz |
[OneFichierCom] Fix typo
-rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index fc40a1874..6cec7a9c4 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.62" + __version__ = "0.63" __pattern__ = r'https?://(?P<ID>\w+)\.(?P<HOST>(1fichier|d(es)?fichiers|pjointe)\.(com|fr|net|org)|(cjoint|mesfichiers|piecejointe|oi)\.(org|net)|tenvoi\.(com|org|net)|dl4free\.com|alterupload\.com|megadl\.fr)' @@ -28,7 +28,7 @@ class OneFichierCom(SimpleHoster): def setup(self): - self.multiDL = True + self.multiDL = self.premium self.resumeDownload = True @@ -36,9 +36,9 @@ class OneFichierCom(SimpleHoster): self.html = self.load(self.pyfile.url, decode=True) m = re.search(self.WAIT_PATTERN, self.html) if m: - time = int(m.group(1)) + 1 * 60 #: One minute more than what the page displays to be safe - self.logInfo("You have to wait been each free download", "Retrying in %d minutes." % minutes) - self.wait(time, True) + wait_time = int(m.group(1)) + 1 * 60 #: One minute more than what the page displays to be safe + self.logInfo("You have to wait been each free download", "Retrying in %d minutes." % wait_time) + self.wait(wait_time, True) self.retry() url, inputs = self.parseHtmlForm('action="http://%s' % self.file_info['ID']) @@ -75,8 +75,8 @@ class OneFichierCom(SimpleHoster): def checkDownloadedFile(self): check = self.checkDownload({'wait': self.WAIT_PATTERN}) if check == "wait": - time = int(self.lastcheck.group(1)) * 60 - self.wait(time, True) + wait_time = int(self.lastcheck.group(1)) * 60 + self.wait(wait_time, True) self.retry() |