Filter out videos from gallery example
This commit is contained in:
parent
44e68aa4b6
commit
42d592d87b
2 changed files with 13 additions and 2 deletions
|
|
@ -38,7 +38,11 @@ impl Image {
|
|||
.json()
|
||||
.await?;
|
||||
|
||||
Ok(response.items)
|
||||
Ok(response
|
||||
.items
|
||||
.into_iter()
|
||||
.filter(|image| !image.url.ends_with(".mp4"))
|
||||
.collect())
|
||||
}
|
||||
|
||||
pub async fn blurhash(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue