diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-25 22:37:39 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-25 22:37:39 +0200 |
commit | df8dab51613e9d5563fc82deb88a3a43a6f3d634 (patch) | |
tree | 3dc9457b7ce4a4ef55f5dbea10e063b1d35e42e7 /module/plugins/hoster/DepositfilesCom.py | |
parent | better settings tab (diff) | |
download | pyload-df8dab51613e9d5563fc82deb88a3a43a6f3d634.tar.xz |
depositfiles multilanguage
Diffstat (limited to 'module/plugins/hoster/DepositfilesCom.py')
-rw-r--r-- | module/plugins/hoster/DepositfilesCom.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py index 2ddde5ef1..dca541da7 100644 --- a/module/plugins/hoster/DepositfilesCom.py +++ b/module/plugins/hoster/DepositfilesCom.py @@ -9,7 +9,7 @@ class DepositfilesCom(Hoster): __name__ = "DepositfilesCom" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?depositfiles\.com(/\w{1,3})?/files/[\w]+" - __version__ = "0.31" + __version__ = "0.32" __description__ = """Depositfiles.com Download Hoster""" __author_name__ = ("spoob") __author_mail__ = ("spoob@pyload.org") @@ -36,7 +36,13 @@ class DepositfilesCom(Hoster): self.download(link) def handleFree(self): - tmp_url = self.pyfile.url.replace("/files/","/en/files/") + tmp_url = self.pyfile.url + match = re.search(r"depositfiles.com/(?:(?P<lang>[\w]{1,3})/)?files/(?P<id>[\w]+)", tmp_url) + if match: + if match.group("id"): + tmp_url = "http://depositfiles.com/en/files/" + match.group("id") + + if re.search(r'File is checked, please try again in a minute.', self.html) is not None: self.log.info("DepositFiles.com: The file is being checked. Waiting 1 minute.") self.setWait(61) |