diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-22 17:56:15 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-22 17:56:15 +0100 |
commit | ddb01583858279a51c1579c6d0cafc5d5f32f8d5 (patch) | |
tree | 08065eafb2b78d0310e329243f510548807e0fec /module | |
parent | Merged in s0undt3ch/pyload (pull request #18) (diff) | |
download | pyload-ddb01583858279a51c1579c6d0cafc5d5f32f8d5.tar.xz |
removed some fs_decode functions
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/UnRar.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py index ebb5cdbd6..a315fbea3 100644 --- a/module/plugins/internal/UnRar.py +++ b/module/plugins/internal/UnRar.py @@ -19,11 +19,10 @@ import os import re -from os.path import join from glob import glob from subprocess import Popen, PIPE -from module.utils.fs import save_join, decode, fs_encode, fs_decode +from module.utils.fs import save_join, decode, fs_encode from module.plugins.internal.AbstractExtractor import AbtractExtractor, WrongPassword, ArchiveError, CRCError class UnRar(AbtractExtractor): @@ -66,9 +65,9 @@ class UnRar(AbtractExtractor): if match: #only add first parts if int(match[0][1]) == 1: - result.append((fs_decode(file), id)) + result.append((file, id)) else: - result.append((fs_decode(file), id)) + result.append((file, id)) return result @@ -136,8 +135,8 @@ class UnRar(AbtractExtractor): def getDeleteFiles(self): if ".part" in self.file: - return glob(re.sub("(?<=\.part)([01]+)", "*", fd_decode(self.file), re.IGNORECASE)) - return [fs_decode(self.file)] + return glob(re.sub("(?<=\.part)([01]+)", "*", self.file, re.IGNORECASE)) + return [self.file] def listContent(self): command = "vb" if self.fullpath else "lb" |