diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-03 01:01:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-03 01:01:15 +0100 |
commit | 90985bb401a647e476ac760d0d73bcb0f7651e7a (patch) | |
tree | 1ff1d8fac215ece38477c3776f1ad97c70f2de77 /module/plugins/hoster/MegaCoNz.py | |
parent | [StreamcloudEu] Fix WAIT_PATTERN (diff) | |
download | pyload-90985bb401a647e476ac760d0d73bcb0f7651e7a.tar.xz |
[MegaCoNz] Fix https://github.com/pyload/pyload/issues/367
Diffstat (limited to 'module/plugins/hoster/MegaCoNz.py')
-rw-r--r-- | module/plugins/hoster/MegaCoNz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py index 55a2c5abf..ed334601a 100644 --- a/module/plugins/hoster/MegaCoNz.py +++ b/module/plugins/hoster/MegaCoNz.py @@ -14,7 +14,7 @@ from Crypto.Util import Counter from module.common.json_layer import json_loads, json_dumps from module.plugins.Hoster import Hoster -from module.utils import decode +from module.utils import decode, fs_decode, fs_encode ############################ General errors ################################### @@ -49,7 +49,7 @@ from module.utils import decode class MegaCoNz(Hoster): __name__ = "MegaCoNz" __type__ = "hoster" - __version__ = "0.23" + __version__ = "0.24" __pattern__ = r'https?://(?:www\.)?mega\.co\.nz/#(?P<TYPE>N|)!(?P<ID>[\w^_]+)!(?P<KEY>[\w,\\-]+)' @@ -117,7 +117,7 @@ class MegaCoNz(Hoster): self.pyfile.setStatus("decrypting") self.pyfile.setProgress(0) - file_crypted = self.lastDownload + file_crypted = fs_encode(self.lastDownload) file_decrypted = file_crypted.rsplit(self.FILE_SUFFIX)[0] try: @@ -164,7 +164,7 @@ class MegaCoNz(Hoster): # self.fail("Checksum mismatch") os.remove(file_crypted) - self.lastDownload = file_decrypted + self.lastDownload = fs_decode(file_decrypted) def checkError(self, code): |