mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-20 04:31:55 +02:00
Sleep 2sec when fetching reddit pages
This commit is contained in:
@@ -96,6 +96,13 @@ public class RedditRipper extends AlbumRipper {
|
||||
nextURL = new URL(nextURLString);
|
||||
}
|
||||
}
|
||||
|
||||
// Wait to avoid rate-limiting against reddit's API
|
||||
try {
|
||||
Thread.sleep(2000);
|
||||
} catch (InterruptedException e) {
|
||||
logger.warn("Interrupted while sleeping", e);
|
||||
}
|
||||
return nextURL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user