Fix gfycat, closes #269

This commit is contained in:
4pr0n 2015-12-19 06:25:04 -08:00
parent cdb97f316b
commit 490062cf9e

View File

@ -65,7 +65,7 @@ public class GfycatRipper extends VideoRipper {
public static String getVideoURL(URL url) throws IOException { public static String getVideoURL(URL url) throws IOException {
logger.info("Retrieving " + url.toExternalForm()); logger.info("Retrieving " + url.toExternalForm());
Document doc = Http.url(url).get(); Document doc = Http.url(url).get();
Elements videos = doc.select("source#mp4source"); Elements videos = doc.select("source#mp4Source");
if (videos.size() == 0) { if (videos.size() == 0) {
throw new IOException("Could not find source#mp4source at " + url); throw new IOException("Could not find source#mp4source at " + url);
} }