cargo fmt
This commit is contained in:
parent
fbafb2c1e1
commit
d9809539dc
2 changed files with 9 additions and 2 deletions
|
|
@ -246,7 +246,10 @@ impl ImmichClient {
|
||||||
/// Falls back to the original if the preview is unavailable.
|
/// Falls back to the original if the preview is unavailable.
|
||||||
pub async fn download_asset_preview(&self, asset_id: &str) -> Result<bytes::Bytes> {
|
pub async fn download_asset_preview(&self, asset_id: &str) -> Result<bytes::Bytes> {
|
||||||
let encoded_id = urlencode(asset_id);
|
let encoded_id = urlencode(asset_id);
|
||||||
let url = format!("{}/assets/{}/thumbnail?size=preview", self.base_url, encoded_id);
|
let url = format!(
|
||||||
|
"{}/assets/{}/thumbnail?size=preview",
|
||||||
|
self.base_url, encoded_id
|
||||||
|
);
|
||||||
|
|
||||||
let response = self
|
let response = self
|
||||||
.client
|
.client
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,11 @@
|
||||||
//!
|
//!
|
||||||
//! Web server for creating selfie timelapses from Immich.
|
//! Web server for creating selfie timelapses from Immich.
|
||||||
|
|
||||||
use immich_timelapse::{config::{Config, CONFIG_PATH}, models::DlibLandmarks, web};
|
use immich_timelapse::{
|
||||||
|
config::{Config, CONFIG_PATH},
|
||||||
|
models::DlibLandmarks,
|
||||||
|
web,
|
||||||
|
};
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue