mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add sleep to popular_videos and top_videos
This commit is contained in:
parent
4c77908bb4
commit
1af86f6afb
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,8 @@ top_videos = [] of Video
|
|||
spawn do
|
||||
pull_top_videos(CONFIG, PG_DB) do |videos|
|
||||
top_videos = videos
|
||||
sleep 1.minutes
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -133,6 +135,8 @@ popular_videos = [] of ChannelVideo
|
|||
spawn do
|
||||
pull_popular_videos(PG_DB) do |videos|
|
||||
popular_videos = videos
|
||||
sleep 1.minutes
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue