Merge pull request #4972 from chennes/revert-4931-no-filename-encode

Revert "Start: Properly hash thumbnail filenames"
This commit is contained in:
Yorik van Havre
2021-08-17 21:43:04 +02:00
committed by GitHub
+2 -2
View File
@@ -109,8 +109,8 @@ def getInfo(filename):
import gnomevfs
except Exception:
# alternative method
import hashlib, urllib
fhash = hashlib.md5(urllib.quote("file://"+path,safe=":/")).hexdigest()
import hashlib
fhash = hashlib.md5(("file://"+path).encode("utf8")).hexdigest()
thumb = os.path.join(os.path.expanduser("~"),".thumbnails","normal",fhash+".png")
else:
uri = gnomevfs.get_uri_from_local_path(path)