fix seenive ripper
This commit is contained in:
parent
fb7ec2076f
commit
660bae8bab
@ -3,6 +3,7 @@ package com.rarchives.ripme.ripper.rippers;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.net.URLDecoder;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@ -119,6 +120,10 @@ public class SeeniveRipper extends AlbumRipper {
|
|||||||
sendUpdate(STATUS.LOADING_RESOURCE, this.url.toExternalForm());
|
sendUpdate(STATUS.LOADING_RESOURCE, this.url.toExternalForm());
|
||||||
for (Element element : doc.select("source")) {
|
for (Element element : doc.select("source")) {
|
||||||
String video = element.attr("src");
|
String video = element.attr("src");
|
||||||
|
if (video.contains("redirect?url=")) {
|
||||||
|
video = video.substring("redirect?url=".length() + 1);
|
||||||
|
video = URLDecoder.decode(video, "UTF-8");
|
||||||
|
}
|
||||||
synchronized (threadPool) {
|
synchronized (threadPool) {
|
||||||
addURLToDownload(new URL(video));
|
addURLToDownload(new URL(video));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user