summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:14:29 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:14:29 +0200
commit9d9618ab35071f36840fe51e63fe2f887131dc5a (patch)
tree47028e89e5a7a2ede5e1d0eddfa7930ba367baf6 /module/plugins/hoster/PremiumTo.py
parent[SimpleCrypter] Don't use self.link(s) (diff)
downloadpyload-9d9618ab35071f36840fe51e63fe2f887131dc5a.tar.xz
Update hosters
Diffstat (limited to 'module/plugins/hoster/PremiumTo.py')
-rw-r--r--module/plugins/hoster/PremiumTo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/PremiumTo.py b/module/plugins/hoster/PremiumTo.py
index 874e19c93..acfc9d1e4 100644
--- a/module/plugins/hoster/PremiumTo.py
+++ b/module/plugins/hoster/PremiumTo.py
@@ -5,7 +5,7 @@ from __future__ import with_statement
import os
from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
-from module.utils import fs_encode
+from module.plugins.internal.utils import encode
class PremiumTo(MultiHoster):
@@ -45,7 +45,7 @@ class PremiumTo(MultiHoster):
err = ""
if self.req.http.code == "420":
#: Custom error code send - fail
- file = fs_encode(self.last_download)
+ file = encode(self.last_download)
with open(file, "rb") as f:
err = f.read(256).strip()
os.remove(file)