Add a album auto-create command

This commit is contained in:
Marc Plano-Lesay 2024-12-03 16:32:05 +11:00
parent 998bfce68f
commit 0ac02c34c6
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
14 changed files with 323 additions and 2 deletions

View file

@ -1,4 +1,5 @@
use crate::{
models::library::Library,
types::{AssetResponseDto, MetadataSearchDto},
Client,
};
@ -8,6 +9,7 @@ use log::debug;
#[derive(Debug, Default)]
pub struct AssetQuery {
pub library: Option<Library>,
pub is_offline: Option<bool>,
pub with_exif: bool,
}
@ -46,7 +48,7 @@ pub async fn fetch_all_assets(query: AssetQuery, client: &Client) -> Result<Vec<
is_offline: query.is_offline,
is_visible: None,
lens_model: None,
library_id: None,
library_id: query.library.clone().map(|library| library.id),
make: None,
model: None,
order: None,