From 20b01373222542bae7ebfc4309802879dd602df7 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 9 Aug 2013 16:27:56 +0200 Subject: UnrestrictLi: fixed http://forum.pyload.org/viewtopic.php?p=10602#p10602 (cherry picked from commit b95ff805c904b84a8fe669519d8111ff9c81c440) --- pyload/plugins/hoster/UnrestrictLi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pyload/plugins/hoster') diff --git a/pyload/plugins/hoster/UnrestrictLi.py b/pyload/plugins/hoster/UnrestrictLi.py index 0ac7e9cc6..c87e14d1a 100644 --- a/pyload/plugins/hoster/UnrestrictLi.py +++ b/pyload/plugins/hoster/UnrestrictLi.py @@ -35,7 +35,7 @@ def secondsToMidnight(): class UnrestrictLi(Hoster): __name__ = "UnrestrictLi" - __version__ = "0.07" + __version__ = "0.08" __type__ = "hoster" __pattern__ = r"https?://.*(unrestrict|unr)\.li" __description__ = """Unrestrict.li hoster plugin""" @@ -74,7 +74,8 @@ class UnrestrictLi(Hoster): self.logDebug("New URL: " + new_url) - self.setNameSize() + if hasattr(self, 'api_data'): + self.setNameSize() self.download(new_url, disposition=True) -- cgit v1.2.3