Invidious is an alternative front-end to YouTube
Add sleep to popular_videos and top_videos
Omar Roth1af86f6afbba
diff --git a/src/invidious.cr b/src/invidious.crindex ad9510c1..f3404d23 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -126,6 +126,8 @@ top_videos = [] of Videospawn dopull_top_videos(CONFIG, PG_DB) do |videos|top_videos = videos+ sleep 1.minutes+ Fiber.yieldendend@@ -133,6 +135,8 @@ popular_videos = [] of ChannelVideospawn dopull_popular_videos(PG_DB) do |videos|popular_videos = videos+ sleep 1.minutes+ Fiber.yieldendend