about summary refs log tree commit diff stats
path: root/src/download/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/download/mod.rs')
-rw-r--r--src/download/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/download/mod.rs b/src/download/mod.rs
index 51f1a66..56910f9 100644
--- a/src/download/mod.rs
+++ b/src/download/mod.rs
@@ -27,7 +27,7 @@ use futures::{future::BoxFuture, FutureExt};
 use log::{debug, error, info, warn};
 use tokio::{fs, task::JoinHandle, time};
 
-mod download_options;
+pub mod download_options;
 
 #[derive(Debug)]
 pub struct CurrentDownload {
@@ -124,6 +124,7 @@ impl Downloader {
                     next_video.title, Bytes::new(video_size), Bytes::new(cache_allocation), Bytes::new(max_cache_size)
                     );
                 self.printed_warning = true;
+                self.cached_cache_allocation = Some(cache_allocation);
             }
             if let Some(cca) = self.cached_cache_allocation {
                 if cca != cache_allocation {