|
|
@ -135,7 +135,11 @@ spawn do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
loop do
|
|
|
|
loop do
|
|
|
|
|
|
|
|
begin
|
|
|
|
top = rank_videos(PG_DB, 40, youtube_pool, filter)
|
|
|
|
top = rank_videos(PG_DB, 40, youtube_pool, filter)
|
|
|
|
|
|
|
|
rescue ex
|
|
|
|
|
|
|
|
next
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if top.size > 0
|
|
|
|
if top.size > 0
|
|
|
|
args = arg_array(top)
|
|
|
|
args = arg_array(top)
|
|
|
@ -150,6 +154,7 @@ spawn do
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
videos << get_video(id, client, PG_DB)
|
|
|
|
videos << get_video(id, client, PG_DB)
|
|
|
|
rescue ex
|
|
|
|
rescue ex
|
|
|
|
|
|
|
|
next
|
|
|
|
end
|
|
|
|
end
|
|
|
|
youtube_pool << client
|
|
|
|
youtube_pool << client
|
|
|
|
end
|
|
|
|
end
|
|
|
|