summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:44:03 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:38 +0200
commitf8cf65d4271254dd89662cb6190adc5b426c6d2b (patch)
tree3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/plugin/hoster
parent'from time' -> 'import time' and so on... (diff)
downloadpyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/plugin/hoster')
-rw-r--r--pyload/plugin/hoster/MegaCoNz.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/hoster/MegaCoNz.py b/pyload/plugin/hoster/MegaCoNz.py
index 2d7b40d98..2e6735ee6 100644
--- a/pyload/plugin/hoster/MegaCoNz.py
+++ b/pyload/plugin/hoster/MegaCoNz.py
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
import array
+import base64
import os
# import pycurl
import random
import re
-from base64 import standard_b64decode
-
from Crypto.Cipher import AES
from Crypto.Util import Counter
@@ -64,7 +63,7 @@ class MegaCoNz(Hoster):
def b64_decode(self, data):
data = data.replace("-", "+").replace("_", "/")
- return standard_b64decode(data + '=' * (-len(data) % 4))
+ return base64.standard_b64decode(data + '=' * (-len(data) % 4))
def getCipherKey(self, key):