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

Merge pull request #814 from cyian-1756/redditImgurGifv

getFilesFromURL now handles imgur gifvs
This commit is contained in:
cyian-1756
2018-07-21 16:43:59 -04:00
committed by GitHub

View File

@@ -54,6 +54,15 @@ public class RipUtils {
} catch (IOException e) {
logger.error("[!] Exception while loading album " + url, e);
}
} else if (url.getHost().endsWith("i.imgur.com") && url.toExternalForm().contains("gifv")) {
// links to imgur gifvs
try {
result.add(new URL(url.toExternalForm().replaceAll(".gifv", ".mp4")));
} catch (IOException e) {
logger.info("Couldn't get gifv from " + url);
}
return result;
}
else if (url.getHost().endsWith("gfycat.com")) {
try {