diff options
| author | dylan araps <dylan.araps@gmail.com> | 2017-10-29 20:29:01 +1100 |
|---|---|---|
| committer | dylan araps <dylan.araps@gmail.com> | 2017-10-29 20:29:01 +1100 |
| commit | c07ac01d6c9d42b4d4b2302cfd9f807453eb9816 (patch) | |
| tree | 5644802e5e8c283214c96939a51788cd28010a34 | |
| parent | ac0fdb990603261f38842e47e9e387fb5e8e7864 (diff) | |
image: Fix shuffle not working with some file types
| -rw-r--r-- | pywal/image.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pywal/image.py b/pywal/image.py index 367191e..8b25b1e 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -15,7 +15,9 @@ def get_random_image(img_dir): current_wall = wallpaper.get() current_wall = os.path.basename(current_wall) - file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif") + file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif", + ".PNG", ".JPG", ".JPEG", ".JPE", ".GIF") + images = [img for img in os.scandir(img_dir) if img.name.endswith(file_types) and img.name != current_wall] |
