diff options
| author | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2021-01-07 20:55:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-07 20:55:10 +0100 |
| commit | e254d2de8ed9e895b27a6d93f2f67ee1544ad037 (patch) | |
| tree | fb3a7c35a630c1592eadf732a02d0ec701e431eb /src | |
| parent | 168376b04671c6e362468267a3b07dd332b40702 (diff) | |
| parent | b0b8ba7000e76e7d5632e9edfebf5c8c4aa44111 (diff) | |
| download | invidious-e254d2de8ed9e895b27a6d93f2f67ee1544ad037.tar.gz invidious-e254d2de8ed9e895b27a6d93f2f67ee1544ad037.tar.bz2 invidious-e254d2de8ed9e895b27a6d93f2f67ee1544ad037.zip | |
Merge pull request #1645 from saltycrys/fix-pubsub-config
Respect `use_pubsub_feeds` config
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 2b915350..800ea956 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -169,7 +169,6 @@ end Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB, config) Invidious::Jobs.register Invidious::Jobs::RefreshFeedsJob.new(PG_DB, config) -Invidious::Jobs.register Invidious::Jobs::SubscribeToFeedsJob.new(PG_DB, config, HMAC_KEY) DECRYPT_FUNCTION = DecryptFunction.new(CONFIG.decrypt_polling) if config.decrypt_polling @@ -180,6 +179,10 @@ if config.statistics_enabled Invidious::Jobs.register Invidious::Jobs::StatisticsRefreshJob.new(PG_DB, config, SOFTWARE) end +if (config.use_pubsub_feeds.is_a?(Bool) && config.use_pubsub_feeds.as(Bool)) || (config.use_pubsub_feeds.is_a?(Int32) && config.use_pubsub_feeds.as(Int32) > 0) + Invidious::Jobs.register Invidious::Jobs::SubscribeToFeedsJob.new(PG_DB, config, HMAC_KEY) +end + if config.popular_enabled Invidious::Jobs.register Invidious::Jobs::PullPopularVideosJob.new(PG_DB) end |
