mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-23 11:28:49 +00:00
Add rescue for video ranking
This commit is contained in:
@@ -147,7 +147,11 @@ spawn do
|
||||
|
||||
top.each do |id|
|
||||
client = get_client(youtube_pool)
|
||||
videos << get_video(id, client, PG_DB)
|
||||
begin
|
||||
videos << get_video(id, client, PG_DB)
|
||||
rescue ex
|
||||
STDOUT << Time.now << " : " << ex.message << "\n"
|
||||
end
|
||||
youtube_pool << client
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user