Revert "Start: Properly hash thumbnail filenames"
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user