@ -25,7 +25,7 @@ class Config
dbname: String,
),
redirect: Bool,
dl_api_key: String | Nil,
dl_api_key: String?,
})
end
@ -140,10 +140,13 @@ spawn do
DetectLanguage.configure do |config|
config.api_key = CONFIG.dl_api_key.not_nil!
filter = true
else
filter = false
loop do
top = rank_videos(PG_DB, 40, youtube_pool, true)
top = rank_videos(PG_DB, 40, youtube_pool, filter)
if top.size > 0
args = arg_array(top)