diff options
Diffstat (limited to 'pkgs/by-name/yt/yt/src/cache/mod.rs')
-rw-r--r-- | pkgs/by-name/yt/yt/src/cache/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/by-name/yt/yt/src/cache/mod.rs b/pkgs/by-name/yt/yt/src/cache/mod.rs index b60cda89..f9715e40 100644 --- a/pkgs/by-name/yt/yt/src/cache/mod.rs +++ b/pkgs/by-name/yt/yt/src/cache/mod.rs @@ -6,16 +6,14 @@ use log::info; use crate::{ app::App, storage::video_database::{ - downloader::set_video_cache_path, getters::get_videos, setters::set_video_status, Video, - VideoStatus, + downloader::set_video_cache_path, getters::get_videos, Video, VideoStatus, }, }; async fn invalidate_video(app: &App, video: &Video) -> Result<()> { info!("Invalidating cache of video: '{}'", video.title); - set_video_status(app, &video.extractor_hash, VideoStatus::Watch, None).await?; - set_video_cache_path(app, &video, None).await?; + set_video_cache_path(app, &video.extractor_hash, None).await?; Ok(()) } |