From 55a66f73e944b7ff92489f368e01fcbc6d9dd92e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 2 Jan 2018 11:51:00 +1100 Subject: [PATCH] image: Cleanup --- pywal/image.py | 5 ++--- 1 file 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)