summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 01:18:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 01:18:45 +0100
commit146fe1e309c33ab149bfaf58ad86c0dd4fb9b156 (patch)
tree22bf2ace19d926392dbe7ba48e44c13c63cd368a /module/plugins/hoster/UploadedTo.py
parent[SimpleHoster] Direct download link support (diff)
downloadpyload-146fe1e309c33ab149bfaf58ad86c0dd4fb9b156.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/UploadedTo.py')
-rw-r--r--module/plugins/hoster/UploadedTo.py6
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={})