getFilesFromURL now handles imgur gifvs
This commit is contained in:
parent
cbfd363842
commit
3f7b6711e3
@ -54,6 +54,15 @@ public class RipUtils {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("[!] Exception while loading album " + url, 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(Http.url(url).get().select("meta[itemprop=contentURL]").attr("content")));
|
||||||
|
} catch (IOException e) {
|
||||||
|
logger.info("Couldn't get gifv from " + url);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (url.getHost().endsWith("gfycat.com")) {
|
else if (url.getHost().endsWith("gfycat.com")) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user