Fixed GfycatRipper
This commit is contained in:
parent
4f5a8b22aa
commit
d6b4375a75
@ -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("//")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user