Invidious is an alternative front-end to YouTube
Rename new property to channel_refresh_interval
Féry Mathieu (Mathius)dfab62ce48ff
diff --git a/config/config.example.yml b/config/config.example.ymlindex 5d4cea28..9519f34a 100644--- a/config/config.example.yml+++ b/config/config.example.yml@@ -320,7 +320,7 @@ channel_threads: 1## Accepted values: a valid time interval (hours:min:seconds)## Default: 00:30:00##-channel_refresh_time: 00:30:00+channel_refresh_interval: 00:30:00#### Forcefully dump and re-download the entire list of uploadeddiff --git a/docker-compose.yml b/docker-compose.ymlindex 964bb702..ab35a496 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -25,7 +25,7 @@ services:INVIDIOUS_CONFIG: |log_level: Infochannel_threads: 1- channel_refresh_time: 00:30:00+ channel_refresh_interval: 00:30:00check_tables: truefeed_threads: 1db:diff --git a/src/invidious/config.cr b/src/invidious/config.crindex 9ffd2cd8..fc24c1e7 100644--- a/src/invidious/config.cr+++ b/src/invidious/config.cr@@ -58,7 +58,7 @@ class Configproperty channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)@[YAML::Field(converter: TimeSpanConverter)]- property channel_refresh_time : Time::Span = 30.minutes # Time between two jobs for crawling videos from channels+ property channel_refresh_interval : Time::Span = 30.minutes # Time between two jobs for crawling videos from channelsproperty feed_threads : Int32 = 1 # Number of threads to use for updating feedsproperty output : String = "STDOUT" # Log file path or STDOUTproperty log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.crdiff --git a/src/invidious/jobs/refresh_channels_job.cr b/src/invidious/jobs/refresh_channels_job.crindex 3e04d1cd..92681408 100644--- a/src/invidious/jobs/refresh_channels_job.cr+++ b/src/invidious/jobs/refresh_channels_job.cr@@ -58,8 +58,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJobendend- LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_time}")- sleep CONFIG.channel_refresh_time+ LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_interval}")+ sleep CONFIG.channel_refresh_intervalFiber.yieldendend