getFilesFromURL now can handle imgur videos

This commit is contained in:
cyian-1756 2018-08-29 18:15:54 -04:00
parent 4fde11f2b0
commit e9c8027035

View File

@ -149,7 +149,11 @@ public class RipUtils {
.userAgent(AbstractRipper.USER_AGENT)
.get();
for (Element el : doc.select("meta")) {
if (el.attr("name").equals("twitter:image:src")) {
if (el.attr("property").equals("og:video")) {
result.add(new URL(el.attr("content")));
return result;
}
else if (el.attr("name").equals("twitter:image:src")) {
result.add(new URL(el.attr("content")));
return result;
}