mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-18 03:01:03 +01:00
image: Fix shuffle not working with some file types
This commit is contained in:
parent
ac0fdb9906
commit
c07ac01d6c
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user