diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-08 12:11:11 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-08 12:11:11 +1000 |
| commit | e07de9f19a62187933754435fb2c614ff70d4f20 (patch) | |
| tree | d5e21ca486c5047553eea42a0558fe5ec0e3ebff /pywal | |
| parent | 023ba506c640db65a804a40471dba379455809bf (diff) | |
image: Fix bug where images that only had differing suffixes used the same scheme.
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/magic.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pywal/magic.py b/pywal/magic.py index d4dd213..3af10ce 100644 --- a/pywal/magic.py +++ b/pywal/magic.py @@ -59,7 +59,9 @@ def get_colors(img, quiet): util.save_file(img, CACHE_DIR / "wal") # 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") if cache_file.is_file(): |
