We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c2881 commit 68850b4Copy full SHA for 68850b4
src/main/java/com/rarchives/ripme/ripper/rippers/ChanRipper.java
@@ -279,8 +279,16 @@ public List<String> getURLsFromPage(Document page) throws URISyntaxException {
279
return imageURLs;
280
}
281
282
+ private boolean isVideo(URL url) {
283
+ String urlString = url.toExternalForm();
284
+ return urlString.endsWith(".webm") || urlString.endsWith(".mp4");
285
+ }
286
+
287
@Override
288
public void downloadURL(URL url, int index) {
289
+ if (isVideo(url)) {
290
+ sleep(5000);
291
292
addURLToDownload(url, getPrefix(index));
293
294
0 commit comments