From da6ab98c8918bd2e5110818206b24cfccc6647ea Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 11 Dec 2014 17:09:47 +0100 Subject: Str unquote stuff --- pyload/api/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/api/__init__.py') diff --git a/pyload/api/__init__.py b/pyload/api/__init__.py index ab410bbc6..399117845 100644 --- a/pyload/api/__init__.py +++ b/pyload/api/__init__.py @@ -12,7 +12,7 @@ from pyload.datatype.PyFile import PyFile from pyload.utils.packagetools import parseNames from pyload.network.RequestFactory import getURL from pyload.remote import activated -from pyload.utils import compare_time, freeSpace, html_unescape, save_filename +from pyload.utils import compare_time, freeSpace, safe_filename if activated: try: @@ -301,11 +301,11 @@ class Api(Iface): :return: package id of the new package """ if self.core.config['general']['folder_per_package']: - folder = urlparse(html_unescape(name)).path.split("/")[-1] + folder = urlparse(name).path.split("/")[-1] else: folder = "" - folder = save_filename(folder) + folder = safe_filename(folder) pid = self.core.files.addPackage(name, folder, dest) -- cgit v1.2.3