Revert "Start: Properly hash thumbnail filenames"

This commit is contained in:
Chris Hennes
2021-08-17 14:28:47 -05:00
committed by GitHub
parent 317dd4c031
commit 1d74880ac2

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)