Fixed GfycatRipper
This commit is contained in:
parent
ac599e236e
commit
82bf98178e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user