Also consider files with upper-case JPG extension

This commit is contained in:
Klemens Schölhorn 2024-09-19 23:34:30 +02:00
parent 9c319d6949
commit 812326752c

View File

@ -181,7 +181,7 @@ async fn update_config_and_image_list_cache_job(
// flatten ignores io error while traversing the iterator // flatten ignores io error while traversing the iterator
images.flatten().filter_map(|entry| { images.flatten().filter_map(|entry| {
let path = entry.path(); let path = entry.path();
if path.extension() == Some(OsStr::new("jpg")) { if path.extension().unwrap_or_default().to_ascii_lowercase() == "jpg" {
Some(path) Some(path)
} else { } else {
None None