This commit is contained in:
2023-08-09 16:41:15 +02:00
parent 32808f9006
commit 9c56a2a12c
2 changed files with 3 additions and 3 deletions

View File

@@ -28,12 +28,12 @@ impl std::error::Error for DownloadError {}
pub async fn download_from_downloader( pub async fn download_from_downloader(
source_id: u32,
remote_id: u32, remote_id: u32,
object_id: i32,
object_type: String object_type: String
) -> Result<Response, Box<dyn std::error::Error + Send + Sync>> { ) -> Result<Response, Box<dyn std::error::Error + Send + Sync>> {
let url = format!( let url = format!(
"{}/download/{remote_id}/{object_id}/{object_type}", "{}/download/{source_id}/{remote_id}/{object_type}",
CONFIG.downloader_url CONFIG.downloader_url
); );

View File

@@ -43,7 +43,7 @@ pub async fn cache_file(
let downloader_result = match download_from_downloader( let downloader_result = match download_from_downloader(
book.source.id, book.source.id,
object_id, book.remote_id,
object_type.clone() object_type.clone()
).await { ).await {
Ok(v) => v, Ok(v) => v,