improved how riputils gets imgur mp4s

This commit is contained in:
cyian-1756 2018-07-15 15:03:56 -04:00
parent 3f7b6711e3
commit 726e303a08

View File

@ -57,7 +57,7 @@ public class RipUtils {
} 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")));
result.add(new URL(url.toExternalForm().replaceAll(".gifv", ".mp4")));
} catch (IOException e) {
logger.info("Couldn't get gifv from " + url);
}