mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-09-01 01:51:56 +02:00
Fixed GfycatRipper
This commit is contained in:
@@ -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("//")) {
|
||||||
|
Reference in New Issue
Block a user