diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:27:31 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:28 +0200 |
commit | 43522ef7898c60ffd3e7c5ff056fd765635bbc5c (patch) | |
tree | 4c9bea495ca8e2ba779d6c9fc952f0aca7770c72 /src/config/mod.rs | |
parent | feat(videos): Allow limiting the number of videos to show (diff) | |
download | yt-43522ef7898c60ffd3e7c5ff056fd765635bbc5c.tar.gz yt-43522ef7898c60ffd3e7c5ff056fd765635bbc5c.zip |
fix(config): Check for wrong keys in the config file
Diffstat (limited to '')
-rw-r--r-- | src/config/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 26d27eb..3d0d0b5 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -10,7 +10,10 @@ use std::path::PathBuf; +use bytes::Bytes; + mod default; +mod definitions; pub mod file_system; pub struct Config { @@ -24,7 +27,7 @@ pub struct UpdateConfig { pub max_backlog: u32, } pub struct DownloadConfig { - pub max_cache_size: u64, + pub max_cache_size: Bytes, } pub struct SelectConfig { pub playback_speed: f64, |