Invidious is an alternative front-end to YouTube
Only start refresh jobs when necessary
saltycrys70e14f92a46d
diff --git a/src/invidious.cr b/src/invidious.crindex 66a88f56..983e6196 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -162,8 +162,13 @@ end# Start jobs-Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB)-Invidious::Jobs.register Invidious::Jobs::RefreshFeedsJob.new(PG_DB)+if CONFIG.channel_threads > 0+ Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB)+end++if CONFIG.feed_threads > 0+ Invidious::Jobs.register Invidious::Jobs::RefreshFeedsJob.new(PG_DB)+endDECRYPT_FUNCTION = DecryptFunction.new(CONFIG.decrypt_polling)if CONFIG.decrypt_polling