diff options
author | Stefano <l.stickell@yahoo.it> | 2013-03-25 21:30:23 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-03-25 21:30:23 +0100 |
commit | 5f461121485ac69997565c3d35a26f4abbe388ae (patch) | |
tree | 390f26d595dc9830cad528fc1d8752a5cc37be08 /module/plugins | |
parent | Merge pull request #51 from enkore/stable (diff) | |
download | pyload-5f461121485ac69997565c3d35a26f4abbe388ae.tar.xz |
DebridItaliaCom: retry if the downloaded file is empty
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/DebridItaliaCom.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/hoster/DebridItaliaCom.py b/module/plugins/hoster/DebridItaliaCom.py index 5142bbdf7..a8f7dd57e 100644 --- a/module/plugins/hoster/DebridItaliaCom.py +++ b/module/plugins/hoster/DebridItaliaCom.py @@ -7,7 +7,7 @@ from module.plugins.Hoster import Hoster class DebridItaliaCom(Hoster): __name__ = "DebridItaliaCom" - __version__ = "0.01" + __version__ = "0.02" __type__ = "hoster" __pattern__ = r"https?://.*debriditalia\.com" __description__ = """Debriditalia.com hoster plugin""" @@ -35,4 +35,9 @@ class DebridItaliaCom(Hoster): self.logDebug("New URL: %s" % new_url) - self.download(new_url, disposition=True)
\ No newline at end of file + self.download(new_url, disposition=True) + + check = self.checkDownload({"empty": re.compile(r"^$")}) + + if check == "empty": + self.retry(5, 120, 'Empty file downloaded') |