about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--contrib/config.toml2
-rw-r--r--yt/src/config/default.rs2
-rw-r--r--yt/src/config/definitions.rs2
-rw-r--r--yt/src/config/file_system.rs2
-rw-r--r--yt/src/config/mod.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/contrib/config.toml b/contrib/config.toml
index d156cec..ffd91a1 100644
--- a/contrib/config.toml
+++ b/contrib/config.toml
@@ -13,7 +13,7 @@ playback_speed = 2.7
 subtitle_langs = ""
 
 [watch]
-local_comments_length = 1000
+local_displays_length = 1000
 
 [paths]
 download_dir = "/tmp/yt"
diff --git a/yt/src/config/default.rs b/yt/src/config/default.rs
index 3b7a3f5..926f422 100644
--- a/yt/src/config/default.rs
+++ b/yt/src/config/default.rs
@@ -54,7 +54,7 @@ pub(crate) mod select {
 }
 
 pub(crate) mod watch {
-    pub(crate) fn local_comments_length() -> usize {
+    pub(crate) fn local_displays_length() -> usize {
         1000
     }
 }
diff --git a/yt/src/config/definitions.rs b/yt/src/config/definitions.rs
index 7d5feee..3d025b3 100644
--- a/yt/src/config/definitions.rs
+++ b/yt/src/config/definitions.rs
@@ -45,7 +45,7 @@ pub(crate) struct SelectConfig {
 #[derive(Debug, Deserialize, PartialEq, Clone, Copy)]
 #[serde(deny_unknown_fields)]
 pub(crate) struct WatchConfig {
-    pub local_comments_length: Option<usize>,
+    pub local_displays_length: Option<usize>,
 }
 
 #[derive(Debug, Deserialize, PartialEq, Clone)]
diff --git a/yt/src/config/file_system.rs b/yt/src/config/file_system.rs
index 11bcd12..6709a2b 100644
--- a/yt/src/config/file_system.rs
+++ b/yt/src/config/file_system.rs
@@ -84,7 +84,7 @@ impl Config {
                 subtitle_langs: get! {select::subtitle_langs, config, select, subtitle_langs},
             },
             watch: WatchConfig {
-                local_comments_length: get! {watch::local_comments_length, config, watch, local_comments_length},
+                local_displays_length: get! {watch::local_displays_length, config, watch, local_displays_length},
             },
             update: UpdateConfig {
                 max_backlog: get! {update::max_backlog, config, update, max_backlog},
diff --git a/yt/src/config/mod.rs b/yt/src/config/mod.rs
index 1aaf065..36dd3fc 100644
--- a/yt/src/config/mod.rs
+++ b/yt/src/config/mod.rs
@@ -47,7 +47,7 @@ pub struct SelectConfig {
 #[derive(Serialize, Debug)]
 #[allow(missing_copy_implementations)]
 pub struct WatchConfig {
-    pub local_comments_length: usize,
+    pub local_displays_length: usize,
 }
 #[derive(Serialize, Debug)]
 pub struct PathsConfig {