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: