Fixed GfycatRipper

This commit is contained in:
cyian-1756 2018-08-23 19:16:12 -04:00
parent ac599e236e
commit 82bf98178e

View File

@ -73,7 +73,7 @@ public class GfycatRipper extends AbstractSingleFileRipper {
@Override @Override
public List<String> getURLsFromPage(Document doc) { public List<String> getURLsFromPage(Document doc) {
List<String> result = new ArrayList<>(); List<String> result = new ArrayList<>();
Elements videos = doc.select("source#mp4Source"); Elements videos = doc.select("source");
String vidUrl = videos.first().attr("src"); String vidUrl = videos.first().attr("src");
if (vidUrl.startsWith("//")) { if (vidUrl.startsWith("//")) {
vidUrl = "http:" + vidUrl; vidUrl = "http:" + vidUrl;