diff options
Diffstat (limited to 'pyload/plugin/hoster/MegaCoNz.py')
-rw-r--r-- | pyload/plugin/hoster/MegaCoNz.py | 5 |
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): |