summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UnrestrictLi.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/UnrestrictLi.py')
-rw-r--r--module/plugins/hoster/UnrestrictLi.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hoster/UnrestrictLi.py b/module/plugins/hoster/UnrestrictLi.py
index e866a9269..397390691 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.03"
+ __version__ = "0.06"
__type__ = "hoster"
__pattern__ = r"https?://.*(unrestrict|unr)\.li"
__description__ = """Unrestrict.li hoster plugin"""
@@ -43,12 +43,12 @@ class UnrestrictLi(Hoster):
__author_mail__ = ("l.stickell@yahoo.it")
def init(self):
- self.chunkLimit = -1
+ self.chunkLimit = 16
self.resumeDownload = True
def process(self, pyfile):
if not self.account:
- self.logError("Please enter your Unrestrict.li account or deactivate this plugin")
+ self.logError(_("Please enter your %s account or deactivate this plugin") % "Unrestrict.li")
self.fail("No Unrestrict.li account provided")
self.logDebug("Old URL: %s" % pyfile.url)
@@ -61,7 +61,9 @@ class UnrestrictLi(Hoster):
self.logDebug("JSON data: " + page)
if page != '':
break
- if "You are not allowed to download from this host" in page:
+ if "File offline" in page:
+ self.offline()
+ 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:
self.logInfo("Reached daily limit for this host. Waiting until 00:10 GMT+2")