Invidious is an alternative front-end to YouTube
Disable language filtering when there is no key
Omar Roth97b93d548bef
diff --git a/src/helpers.cr b/src/helpers.crindex e01b847a..5ba9c461 100644--- a/src/helpers.cr+++ b/src/helpers.cr@@ -25,7 +25,7 @@ class Configdbname: String,),redirect: Bool,- dl_api_key: String | Nil,+ dl_api_key: String?,})enddiff --git a/src/invidious.cr b/src/invidious.crindex f373be42..9d34f28b 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -140,10 +140,13 @@ spawn doDetectLanguage.configure do |config|config.api_key = CONFIG.dl_api_key.not_nil!end+ filter = true+ else+ filter = falseendloop do- top = rank_videos(PG_DB, 40, youtube_pool, true)+ top = rank_videos(PG_DB, 40, youtube_pool, filter)if top.size > 0args = arg_array(top)