Fix Finebox ripper

This commit is contained in:
4pr0n 2015-03-30 01:36:15 -07:00
parent feb82b2dc5
commit 1b9eea8499

View File

@ -53,11 +53,11 @@ public class FineboxRipper extends AlbumRipper {
} }
Elements videos = doc.select("video"); Elements videos = doc.select("video");
for (Element element : videos) { for (Element element : videos) {
String videourl = element.attr("src"); String videourl = element.select("source").attr("src");
if(videourl.substring(0,4)!="http"){ if (!videourl.startsWith("http")) {
videourl = "http://" + DOMAIN + videourl; videourl = "http://" + DOMAIN + videourl;
} }
logger.error("URL to download: " + videourl); logger.info("URL to download: " + videourl);
if (!addURLToDownload(new URL(videourl))) { if (!addURLToDownload(new URL(videourl))) {
hasPagesLeft = false; hasPagesLeft = false;
break; break;