From b9292fcac49e6c52532cb8aedbaea96562b84881 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sun, 19 Jul 2015 13:59:57 +0100 Subject: [PATCH] For consistent hashing/comparing of filenames, always decode URLs --- syncplay/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index 044c869..398a77c 100644 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -161,8 +161,8 @@ def blackholeStdoutForFrozenWindow(): def stripfilename(filename, stripURL): if filename: + filename = urllib.unquote(filename) if stripURL: - filename = urllib.unquote(filename) filename = filename.split(u"/")[-1] return re.sub(constants.FILENAME_STRIP_REGEX, "", filename) else: