diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-01-02 11:51:00 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-01-02 11:51:00 +1100 |
| commit | 55a66f73e944b7ff92489f368e01fcbc6d9dd92e (patch) | |
| tree | 40789f22ca77103a9095ae43380fe097d36192eb /pywal | |
| parent | e09872be69d2666217cb4328b8c91519a7c9422d (diff) | |
image: Cleanup
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/image.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pywal/image.py b/pywal/image.py index 5e9413d..d62cc26 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -15,11 +15,10 @@ def get_random_image(img_dir): current_wall = wallpaper.get() current_wall = os.path.basename(current_wall) - file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif", - ".PNG", ".JPG", ".JPEG", ".JPE", ".GIF") + file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif") images = [img for img in os.scandir(img_dir) - if img.name.endswith(file_types)] + if img.name.lower().endswith(file_types)] if len(images) > 2 and current_wall in images: images.remove(current_wall) |
