summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FileshareInUa.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:25:14 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:25:14 +0200
commit05d258d98dd8c2faf0b769840fa1e3c4acccdce8 (patch)
tree20d379639d14a2b69deaa9e0376e33312b5bb994 /module/plugins/hoster/FileshareInUa.py
parent[ShareRapidCom] Fix https://github.com/pyload/pyload/issues/694 (diff)
downloadpyload-05d258d98dd8c2faf0b769840fa1e3c4acccdce8.tar.xz
Diffstat (limited to 'module/plugins/hoster/FileshareInUa.py')
-rw-r--r--module/plugins/hoster/FileshareInUa.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/FileshareInUa.py b/module/plugins/hoster/FileshareInUa.py
index 52e084b9c..7c8c6f8ff 100644
--- a/module/plugins/hoster/FileshareInUa.py
+++ b/module/plugins/hoster/FileshareInUa.py
@@ -31,12 +31,12 @@ class FileshareInUa(Hoster):
pyfile.name = self._getName()
- self.link = self._getLink()
+ link = self._getLink()
- if not self.link.startswith('http://'):
- self.link = "http://fileshare.in.ua" + self.link
+ if not link.startswith('http://'):
+ link = "http://fileshare.in.ua" + link
- self.download(self.link)
+ self.download(link)
def _checkOnline(self):
if re.search(self.PATTERN_OFFLINE, self.html):
@@ -46,7 +46,7 @@ class FileshareInUa(Hoster):
def _getName(self):
name = re.search(self.PATTERN_FILENAME, self.html)
- if not name:
+ if name is None:
self.fail("%s: Plugin broken." % self.__name__)
return name.group(1)
@@ -66,7 +66,7 @@ def getInfo(urls):
else:
name = re.search(FileshareInUa.PATTERN_FILENAME, html)
- if not name:
+ if name is None:
result.append((url, 0, 1, url))
continue