diff options
Diffstat (limited to 'module/plugins/internal/Crypter.py')
-rw-r--r-- | module/plugins/internal/Crypter.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/internal/Crypter.py b/module/plugins/internal/Crypter.py index 77b5d74e9..0a9b85743 100644 --- a/module/plugins/internal/Crypter.py +++ b/module/plugins/internal/Crypter.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- -from module.plugins.internal.Base import Base, check_abort, create_getInfo, parse_fileInfo -from module.plugins.internal.Plugin import parse_name -from module.utils import save_path as safe_filename +from module.plugins.internal.Base import Base, create_getInfo, parse_fileInfo +from module.plugins.internal.utils import fixname, parse_name class Crypter(Base): @@ -88,7 +87,7 @@ class Crypter(Base): self.pyload.api.setPackageData(pid, {'password': package_password}) #: Workaround to do not break API addPackage method - set_folder = lambda x="": self.pyload.api.setPackageData(pid, {'folder': safe_filename(x)}) + set_folder = lambda x="": self.pyload.api.setPackageData(pid, {'folder': fixname(x)}) if use_subfolder: if not subfolder_per_package: |