diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-04-14 16:42:43 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-04-14 16:42:43 +0200 |
commit | cfcb249e87abd0866f72e6d11ddeea79863f121d (patch) | |
tree | 9390976b81439d3f24fb299a28eb262b0469f1bd /module/plugins/hoster/NetloadIn.py | |
parent | closed #577 (diff) | |
download | pyload-cfcb249e87abd0866f72e6d11ddeea79863f121d.tar.xz |
closed #580
Diffstat (limited to 'module/plugins/hoster/NetloadIn.py')
-rw-r--r-- | module/plugins/hoster/NetloadIn.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index d07941c6f..ebcd40970 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.37" + __version__ = "0.38" __description__ = """Netload.in Download Hoster""" __author_name__ = ("spoob", "RaNaN", "Gregy") __author_mail__ = ("spoob@pyload.org", "ranan@pyload.org", "gregy@gregy.cz") @@ -147,7 +147,9 @@ class NetloadIn(Hoster): self.offline() name = re.search(r'class="dl_first_filename">([^<]+)', page, re.MULTILINE) - self.pyfile.name = name.group(1).strip() + # the found filename is not truncated + if not name.endswith(".."): + self.pyfile.name = name.group(1).strip() captchawaited = False for i in range(10): @@ -234,12 +236,12 @@ class NetloadIn(Hoster): def proceed(self, url): self.log.debug("Netload: Downloading..") - self.download(url) + self.download(url, disposition=True) check = self.checkDownload({"empty": re.compile(r"^$"), "offline": re.compile("The file was deleted")}) if check == "empty": - self.log.info(_("Downloaded File was empty")) + self.logInfo(_("Downloaded File was empty")) self.retry() elif check == "offline": self.offline() |