mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-23 06:18:35 +01:00
image: Fix bug where images that only had differing suffixes used the same scheme.
This commit is contained in:
parent
023ba506c6
commit
e07de9f19a
@ -59,7 +59,9 @@ def get_colors(img, quiet):
|
|||||||
util.save_file(img, CACHE_DIR / "wal")
|
util.save_file(img, CACHE_DIR / "wal")
|
||||||
|
|
||||||
# Cache the sequences file.
|
# Cache the sequences file.
|
||||||
cache_file = CACHE_DIR / "schemes" / img.replace("/", "_")
|
# _home_dylan_img_jpg.json
|
||||||
|
cache_file = CACHE_DIR / "schemes" / \
|
||||||
|
img.replace("/", "_").replace(".", "_")
|
||||||
cache_file = cache_file.with_suffix(".json")
|
cache_file = cache_file.with_suffix(".json")
|
||||||
|
|
||||||
if cache_file.is_file():
|
if cache_file.is_file():
|
||||||
|
Loading…
Reference in New Issue
Block a user