diff options
author | Stefano <l.stickell@yahoo.it> | 2013-10-02 15:57:29 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-07 11:26:58 +0200 |
commit | 08b77b4cb91338f3c03ab21712387f7e2336c881 (patch) | |
tree | 172c1f5da771c24795e9bcae7d5e8b0023becc91 /pyload/plugins/hoster/MediafireCom.py | |
parent | Merge pull request #285 from vuolter/s/hoster/OneFichierCom (diff) | |
download | pyload-08b77b4cb91338f3c03ab21712387f7e2336c881.tar.xz |
Plugins: cosmetics See #286
(cherry picked from commit f876908b6a1946845c1c7dff591d4d9f64643f82)
Conflicts:
pyload/plugins/hoster/DlFreeFr.py
Diffstat (limited to 'pyload/plugins/hoster/MediafireCom.py')
-rw-r--r-- | pyload/plugins/hoster/MediafireCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/plugins/hoster/MediafireCom.py b/pyload/plugins/hoster/MediafireCom.py index 1e856c41d..494d0049e 100644 --- a/pyload/plugins/hoster/MediafireCom.py +++ b/pyload/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) |