summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Container.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/Container.py')
-rw-r--r--pyload/plugin/Container.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugin/Container.py b/pyload/plugin/Container.py
index e2e0f2248..87d75976f 100644
--- a/pyload/plugin/Container.py
+++ b/pyload/plugin/Container.py
@@ -8,7 +8,7 @@ from os import remove
from os.path import basename, exists
from pyload.plugin.internal.Crypter import Crypter
-from pyload.utils import safe_join
+from pyload.utils import fs_join
class Container(Crypter):
@@ -45,7 +45,7 @@ class Container(Crypter):
if self.pyfile.url.startswith("http"):
self.pyfile.name = re.findall("([^\/=]+)", self.pyfile.url)[-1]
content = self.load(self.pyfile.url)
- self.pyfile.url = safe_join(self.core.config['general']['download_folder'], self.pyfile.name)
+ self.pyfile.url = fs_join(self.core.config['general']['download_folder'], self.pyfile.name)
try:
with open(self.pyfile.url, "wb") as f:
f.write(content)
@@ -55,8 +55,8 @@ class Container(Crypter):
else:
self.pyfile.name = basename(self.pyfile.url)
if not exists(self.pyfile.url):
- if exists(safe_join(pypath, self.pyfile.url)):
- self.pyfile.url = safe_join(pypath, self.pyfile.url)
+ if exists(fs_join(pypath, self.pyfile.url)):
+ self.pyfile.url = fs_join(pypath, self.pyfile.url)
else:
self.fail(_("File not exists"))