Merge pull request #896 from cyian-1756/reddit_imgur_fixes
getFilesFromURL now can handle imgur videos
This commit is contained in:
commit
867e00d4d9
@ -149,7 +149,11 @@ public class RipUtils {
|
|||||||
.userAgent(AbstractRipper.USER_AGENT)
|
.userAgent(AbstractRipper.USER_AGENT)
|
||||||
.get();
|
.get();
|
||||||
for (Element el : doc.select("meta")) {
|
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")));
|
result.add(new URL(el.attr("content")));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user