mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 16:52:12 +05:30
Rename new property to channel_refresh_interval
Follow indications : https://github.com/iv-org/invidious/pull/2915#discussion_r811373503
This commit is contained in:
parent
18197e7e3e
commit
dfab62ce48
@ -320,7 +320,7 @@ channel_threads: 1
|
|||||||
## Accepted values: a valid time interval (hours:min:seconds)
|
## Accepted values: a valid time interval (hours:min:seconds)
|
||||||
## Default: 00:30:00
|
## 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 uploaded
|
## Forcefully dump and re-download the entire list of uploaded
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
INVIDIOUS_CONFIG: |
|
INVIDIOUS_CONFIG: |
|
||||||
log_level: Info
|
log_level: Info
|
||||||
channel_threads: 1
|
channel_threads: 1
|
||||||
channel_refresh_time: 00:30:00
|
channel_refresh_interval: 00:30:00
|
||||||
check_tables: true
|
check_tables: true
|
||||||
feed_threads: 1
|
feed_threads: 1
|
||||||
db:
|
db:
|
||||||
|
@ -58,7 +58,7 @@ class Config
|
|||||||
|
|
||||||
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
||||||
@[YAML::Field(converter: TimeSpanConverter)]
|
@[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 channels
|
||||||
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
|
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
|
||||||
property output : String = "STDOUT" # Log file path or STDOUT
|
property output : String = "STDOUT" # Log file path or STDOUT
|
||||||
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
|
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
|
||||||
|
@ -58,8 +58,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_time}")
|
LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_interval}")
|
||||||
sleep CONFIG.channel_refresh_time
|
sleep CONFIG.channel_refresh_interval
|
||||||
Fiber.yield
|
Fiber.yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user