summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-04-14 17:46:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-04-14 17:46:45 +0200
commit1c70fbc6b8c3cd9f6952230c5e2f9f8d9d32e8b5 (patch)
tree2410008dc707b34479c3b77afcec322b9d3d3bd0 /module/plugins/hoster
parentclosed #580 (diff)
downloadpyload-1c70fbc6b8c3cd9f6952230c5e2f9f8d9d32e8b5.tar.xz
fix last commit
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/NetloadIn.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index ebcd40970..4aa1cd888 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -55,7 +55,7 @@ class NetloadIn(Hoster):
__name__ = "NetloadIn"
__type__ = "hoster"
__pattern__ = r"http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)"
- __version__ = "0.38"
+ __version__ = "0.39"
__description__ = """Netload.in Download Hoster"""
__author_name__ = ("spoob", "RaNaN", "Gregy")
__author_mail__ = ("spoob@pyload.org", "ranan@pyload.org", "gregy@gregy.cz")
@@ -148,8 +148,10 @@ class NetloadIn(Hoster):
name = re.search(r'class="dl_first_filename">([^<]+)', page, re.MULTILINE)
# the found filename is not truncated
- if not name.endswith(".."):
- self.pyfile.name = name.group(1).strip()
+ if name:
+ name = name.group(1).strip()
+ if not name.endswith(".."):
+ self.pyfile.name = name
captchawaited = False
for i in range(10):