Fixed file extension issue on urls

main
Joey Hines 2024-03-03 15:17:01 -07:00
parent 774f63625d
commit 493a551586
Signed by: joeyahines
GPG Key ID: 995E531F7A569DDB
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ impl Image {
}
if !image_query.image_type.is_empty() {
let path = img.link.to_file_path().unwrap();
let path = img.link.path();
let path = PathBuf::from(path);
let ext = path.extension().unwrap().to_str().unwrap();
if !image_query.image_type.contains(&ext.to_string())