From 812326752cf1b5daacdd8e728038571f41f1535c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Thu, 19 Sep 2024 23:34:30 +0200 Subject: [PATCH] Also consider files with upper-case JPG extension --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e0b295a..fdddebe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,7 +181,7 @@ async fn update_config_and_image_list_cache_job( // flatten ignores io error while traversing the iterator images.flatten().filter_map(|entry| { let path = entry.path(); - if path.extension() == Some(OsStr::new("jpg")) { + if path.extension().unwrap_or_default().to_ascii_lowercase() == "jpg" { Some(path) } else { None