diff options
author | Stefano <l.stickell@yahoo.it> | 2013-10-02 15:57:29 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-02 16:08:43 +0200 |
commit | f876908b6a1946845c1c7dff591d4d9f64643f82 (patch) | |
tree | e1b5ba8ba107225ba2e84f2ced7015fb2902ee6d /module/plugins/hoster/MediafireCom.py | |
parent | Merge pull request #285 from vuolter/s/hoster/OneFichierCom (diff) | |
download | pyload-f876908b6a1946845c1c7dff591d4d9f64643f82.tar.xz |
Plugins: cosmetics See #286
Diffstat (limited to 'module/plugins/hoster/MediafireCom.py')
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 1e856c41d..494d0049e 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -36,7 +36,8 @@ def checkHTMLHeader(url): url = line.split(':', 1)[1].strip() if 'error.php?errno=320' in url: return url, 1 - if not url.startswith('http://'): url = 'http://www.mediafire.com' + url + if not url.startswith('http://'): + url = 'http://www.mediafire.com' + url break elif 'content-disposition' in line: return url, 2 @@ -114,7 +115,8 @@ class MediafireCom(SimpleHoster): self.fail("No or incorrect password") found = re.search(r'kNO = "(http://.*?)";', self.html) - if not found: self.parseError("Download URL") + if not found: + self.parseError("Download URL") download_url = found.group(1) self.logDebug("DOWNLOAD LINK:", download_url) |