Skip to content

Commit dfab62c

Browse files
committed
Rename new property to channel_refresh_interval
Follow indications : #2915 (comment)
1 parent 18197e7 commit dfab62c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

config/config.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ channel_threads: 1
320320
## Accepted values: a valid time interval (hours:min:seconds)
321321
## Default: 00:30:00
322322
##
323-
channel_refresh_time: 00:30:00
323+
channel_refresh_interval: 00:30:00
324324

325325
##
326326
## Forcefully dump and re-download the entire list of uploaded

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
INVIDIOUS_CONFIG: |
2626
log_level: Info
2727
channel_threads: 1
28-
channel_refresh_time: 00:30:00
28+
channel_refresh_interval: 00:30:00
2929
check_tables: true
3030
feed_threads: 1
3131
db:

src/invidious/config.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Config
5858

5959
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
6060
@[YAML::Field(converter: TimeSpanConverter)]
61-
property channel_refresh_time : Time::Span = 30.minutes # Time between two jobs for crawling videos from channels
61+
property channel_refresh_interval : Time::Span = 30.minutes # Time between two jobs for crawling videos from channels
6262
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
6363
property output : String = "STDOUT" # Log file path or STDOUT
6464
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr

src/invidious/jobs/refresh_channels_job.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
5858
end
5959
end
6060

61-
LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_time}")
62-
sleep CONFIG.channel_refresh_time
61+
LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_interval}")
62+
sleep CONFIG.channel_refresh_interval
6363
Fiber.yield
6464
end
6565
end

0 commit comments

Comments
 (0)