From 5b87dd18c173fa02574d97b7c1680c95f8d69424 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Thu, 9 Feb 2012 17:21:07 +0100 Subject: closed #534 - pyload crash, depositfiles 20gb limit workaround --- module/plugins/hoster/DepositfilesCom.py | 19 +++++++++++++++---- module/plugins/hoster/IfolderRu.py | 4 ++-- module/plugins/hoster/Share4webCom.py | 16 ++++++++++++++++ module/setup.py | 19 ++++++------------- 4 files changed, 39 insertions(+), 19 deletions(-) create mode 100644 module/plugins/hoster/Share4webCom.py diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py index c5cca6409..ede21e9ee 100644 --- a/module/plugins/hoster/DepositfilesCom.py +++ b/module/plugins/hoster/DepositfilesCom.py @@ -11,7 +11,7 @@ class DepositfilesCom(SimpleHoster): __name__ = "DepositfilesCom" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?depositfiles\.com(/\w{1,3})?/files/[\w]+" - __version__ = "0.37" + __version__ = "0.38" __description__ = """Depositfiles.com Download Hoster""" __author_name__ = ("spoob", "zoidberg") __author_mail__ = ("spoob@pyload.org", "zoidberg@mujmail.cz") @@ -19,12 +19,16 @@ class DepositfilesCom(SimpleHoster): FILE_INFO_PATTERN = r'File name: .*\s*File size: (?P[0-9.]+) (?P[kKMG])i?B' FILE_OFFLINE_PATTERN = r'' FILE_URL_REPLACEMENTS = [(r"\.com(/.*?)?/files", ".com/en/files"), (r"\.html$", "")] - + RECAPTCHA_PATTERN = r"Recaptcha.create\('([^']+)', this\);" DOWNLOAD_LINK_PATTERN = r'
' in self.html: + self.logWarning("Download limit reached") + self.retry(25, 3600, "Download limit reached") + elif 'onClick="show_gold_offer' in self.html: + self.account.relogin() + self.retry() link = unquote(re.search('
\s*