summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UnrestrictLi.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-08-09 16:34:25 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-08-09 16:34:25 +0200
commit9292f3d93db66e09ba6e2eb4a07b4ca69a5a9366 (patch)
treedd6b8e8359f3e23d15aaf1773860d1895fb4a348 /module/plugins/hoster/UnrestrictLi.py
parentUnrestrictLi: fixed http://forum.pyload.org/viewtopic.php?p=10602#p10602 (diff)
downloadpyload-9292f3d93db66e09ba6e2eb4a07b4ca69a5a9366.tar.xz
UnrestrictLi: merged #215
Diffstat (limited to 'module/plugins/hoster/UnrestrictLi.py')
-rw-r--r--module/plugins/hoster/UnrestrictLi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hoster/UnrestrictLi.py b/module/plugins/hoster/UnrestrictLi.py
index d5bc0e70c..358e493b1 100644
--- a/module/plugins/hoster/UnrestrictLi.py
+++ b/module/plugins/hoster/UnrestrictLi.py
@@ -35,7 +35,7 @@ def secondsToMidnight():
class UnrestrictLi(Hoster):
__name__ = "UnrestrictLi"
- __version__ = "0.08"
+ __version__ = "0.09"
__type__ = "hoster"
__pattern__ = r"https?://.*(unrestrict|unr)\.li"
__description__ = """Unrestrict.li hoster plugin"""
@@ -63,6 +63,9 @@ class UnrestrictLi(Hoster):
break
if "File offline" in page:
self.offline()
+ elif "ERROR_HOSTER_TEMPORARILY_UNAVAILABLE" in page:
+ self.logInfo("Hoster temporarily unavailable, waiting 1 minute and retry")
+ self.retry(5, 60, "Hoster is temporarily unavailable")
elif "You are not allowed to download from this host" in page:
self.fail("You are not allowed to download from this host")
elif "You have reached your daily limit for this host" in page: