diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:09:47 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:09:47 +0100 |
commit | da6ab98c8918bd2e5110818206b24cfccc6647ea (patch) | |
tree | b49e67dcc4c34a9c181dc61b988a162b9ba13638 /pyload/api/__init__.py | |
parent | Spare code cosmetics (diff) | |
download | pyload-da6ab98c8918bd2e5110818206b24cfccc6647ea.tar.xz |
Str unquote stuff
Diffstat (limited to 'pyload/api/__init__.py')
-rw-r--r-- | pyload/api/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |