From 7323709537c6ff14136cd79fb07606cd79391758 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 24 Jan 2024 18:11:23 +0100 Subject: refactor asset system pt. 1 --- transcoder/src/thumbnail.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'transcoder/src/thumbnail.rs') diff --git a/transcoder/src/thumbnail.rs b/transcoder/src/thumbnail.rs index 5baf888..9661fd0 100644 --- a/transcoder/src/thumbnail.rs +++ b/transcoder/src/thumbnail.rs @@ -1,11 +1,10 @@ use crate::LOCAL_IMAGE_TRANSCODING_TASKS; -use jellybase::cache::async_cache_file; -use jellycommon::AssetLocation; +use jellybase::cache::{async_cache_file, CachePath}; use log::info; use std::{path::Path, process::Stdio}; use tokio::{io::copy, process::Command}; -pub async fn create_thumbnail(path: &Path, time: f64) -> anyhow::Result { +pub async fn create_thumbnail(path: &Path, time: f64) -> anyhow::Result { Ok(async_cache_file( &["thumb", path.to_str().unwrap(), &format!("{time}")], move |mut output| async move { -- cgit v1.2.3-70-g09d2