1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-11 16:34:04 +02:00

Delay rip if video

This commit is contained in:
MetaPrime
2025-02-09 17:51:18 -08:00
parent 37c28817df
commit ff928ae82a

View File

@@ -279,8 +279,16 @@ public class ChanRipper extends AbstractHTMLRipper {
return imageURLs;
}
private boolean isVideo(URL url) {
String urlString = url.toExternalForm();
return urlString.endsWith(".webm") || urlString.endsWith(".mp4");
}
@Override
public void downloadURL(URL url, int index) {
if (isVideo(url)) {
sleep(1000);
}
addURLToDownload(url, getPrefix(index));
}
}