diff options
author | 2014-10-25 01:11:29 +0200 | |
---|---|---|
committer | 2014-10-25 01:17:03 +0200 | |
commit | 4da90891eb2544ac15a7d512aba8cb357f68ee5f (patch) | |
tree | 84eec3f9f27a880df052da43fb3a6a8112b39c24 /module/plugins/hoster/FilecloudIo.py | |
parent | Fix and improve plugins logging (diff) | |
download | pyload-4da90891eb2544ac15a7d512aba8cb357f68ee5f.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilecloudIo.py')
-rw-r--r-- | module/plugins/hoster/FilecloudIo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/FilecloudIo.py b/module/plugins/hoster/FilecloudIo.py index 659a2cc0f..74652be04 100644 --- a/module/plugins/hoster/FilecloudIo.py +++ b/module/plugins/hoster/FilecloudIo.py @@ -93,14 +93,15 @@ class FilecloudIo(SimpleHoster): if response['dl']: self.html = self.load('http://filecloud.io/download.html') + m = re.search(self.LINK_PATTERN % self.file_info['ID'], self.html) if m is None: self.error("Download URL") - download_url = m.group(1) - self.logDebug("Download URL: %s" % download_url) if "size" in self.file_info and self.file_info['size']: self.check_data = {"size": int(self.file_info['size'])} + + download_url = m.group(1) self.download(download_url) else: self.fail("Unexpected server response") |