Fixed GfycatRipper

This commit is contained in:
cyian-1756 2018-08-23 19:33:06 -04:00
parent 4f5a8b22aa
commit d6b4375a75

View File

@ -95,9 +95,9 @@ public class GfycatRipper extends AbstractSingleFileRipper {
url = new URL(url.toExternalForm().replace("/gifs/detail", "")); url = new URL(url.toExternalForm().replace("/gifs/detail", ""));
Document doc = Http.url(url).get(); Document doc = Http.url(url).get();
Elements videos = doc.select("source#mp4Source"); Elements videos = doc.select("source");
if (videos.isEmpty()) { if (videos.isEmpty()) {
throw new IOException("Could not find source#mp4source at " + url); throw new IOException("Could not find source at " + url);
} }
String vidUrl = videos.first().attr("src"); String vidUrl = videos.first().attr("src");
if (vidUrl.startsWith("//")) { if (vidUrl.startsWith("//")) {