diff options
author | 2014-10-27 01:18:45 +0100 | |
---|---|---|
committer | 2014-10-27 01:18:45 +0100 | |
commit | 146fe1e309c33ab149bfaf58ad86c0dd4fb9b156 (patch) | |
tree | 22bf2ace19d926392dbe7ba48e44c13c63cd368a /module/plugins/hoster/UploadedTo.py | |
parent | [SimpleHoster] Direct download link support (diff) | |
download | pyload-146fe1e309c33ab149bfaf58ad86c0dd4fb9b156.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/UploadedTo.py')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index e6ec0eb12..8a4af51b4 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -139,6 +139,7 @@ class UploadedTo(Hoster): pyfile.name, pyfile.size = name, size else: self.error(_("file info")) + elif api == 'Access denied': self.fail(_("API key invalid")) @@ -171,9 +172,9 @@ class UploadedTo(Hoster): self.fail(_("Traffic exceeded")) header = self.load("http://uploaded.net/file/%s" % self.fileID, just_header=True) - if "location" in header: + if 'location' in header: #Direct download - print "Direct Download: " + header['location'] + self.logDebug("Direct download link detected") self.download(header['location']) else: #Indirect download @@ -182,7 +183,6 @@ class UploadedTo(Hoster): if m is None: self.fail(_("Download URL not m. Try to enable direct downloads")) url = m.group(1) - print "Premium URL: " + url self.download(url, post={}) |