aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/CachePath.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 22:48:09 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 22:48:09 -0400
commit8bd9d1519eee62660c395333a764a5d7443b85e2 (patch)
treecb505b1eb95f0731ecbcb1e248f65406b31aabaa /scanner/CachePath.py
parentPolishing... (diff)
downloadPhotoFloat-8bd9d1519eee62660c395333a764a5d7443b85e2.tar.xz
PhotoFloat-8bd9d1519eee62660c395333a764a5d7443b85e2.zip
LIl things.
Diffstat (limited to 'scanner/CachePath.py')
-rw-r--r--scanner/CachePath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scanner/CachePath.py b/scanner/CachePath.py
index 0d3032b..89fc20e 100644
--- a/scanner/CachePath.py
+++ b/scanner/CachePath.py
@@ -14,7 +14,7 @@ def trim_base_custom(path, base):
def trim_base(path):
return trim_base_custom(path, trim_base.base)
def cache_base(path):
- path = trim_base(path).replace('/', '-').replace(' ', '_').replace('(', '').replace(')', '').replace('#', '').replace('[', '').replace(']', '').replace('"', '').replace("'", '').replace('_-_', '-').lower()
+ path = trim_base(path).replace('/', '-').replace(' ', '_').replace('(', '').replace('&', '').replace(',', '').replace(')', '').replace('#', '').replace('[', '').replace(']', '').replace('"', '').replace("'", '').replace('_-_', '-').lower()
while path.find("--") != -1:
path = path.replace("--", "-")
while path.find("__") != -1: