summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-29 15:56:57 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-29 15:56:57 +0100
commitcb9e67a5437ddfafd6a93f5a208b9faf3f2d5575 (patch)
tree2175310fe13226ac859dac57d5e3a1d14d9223bf /module/plugins/hoster
parent[ExtractArchive] Fix typo (thx SelmaUrban) (diff)
downloadpyload-cb9e67a5437ddfafd6a93f5a208b9faf3f2d5575.tar.xz
Some file encoding fixup + optimizations
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/PremiumTo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/PremiumTo.py b/module/plugins/hoster/PremiumTo.py
index 39e7522e2..b66b9a505 100644
--- a/module/plugins/hoster/PremiumTo.py
+++ b/module/plugins/hoster/PremiumTo.py
@@ -41,10 +41,10 @@ class PremiumTo(MultiHoster):
err = ''
if self.req.http.code == '420':
# Custom error code send - fail
- lastDownload = fs_encode(self.lastDownload)
- with open(lastDownload, "rb") as f:
+ file = fs_encode(self.lastDownload)
+ with open(file, "rb") as f:
err = f.read(256).strip()
- remove(lastDownload)
+ remove(file)
if err:
self.fail(err)