mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-31 17:42:11 +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", ""));
|
||||
|
||||
Document doc = Http.url(url).get();
|
||||
Elements videos = doc.select("source#mp4Source");
|
||||
Elements videos = doc.select("source");
|
||||
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");
|
||||
if (vidUrl.startsWith("//")) {
|
||||
|
Reference in New Issue
Block a user