Fixed file extension issue on urls
parent
774f63625d
commit
493a551586
|
@ -76,7 +76,8 @@ impl Image {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !image_query.image_type.is_empty() {
|
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();
|
let ext = path.extension().unwrap().to_str().unwrap();
|
||||||
|
|
||||||
if !image_query.image_type.contains(&ext.to_string())
|
if !image_query.image_type.contains(&ext.to_string())
|
||||||
|
|
Loading…
Reference in New Issue