Add a album auto-create command
This commit is contained in:
parent
998bfce68f
commit
0ac02c34c6
14 changed files with 323 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue