Improved Docs & Code Style Fixes
^
This commit is contained in:
parent
b528f66280
commit
ebb3485c94
@ -7,10 +7,7 @@ import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import org.jsoup.Jsoup;
|
||||
@ -20,7 +17,7 @@ import org.jsoup.nodes.Element;
|
||||
import org.jsoup.select.Elements;
|
||||
|
||||
/**
|
||||
* For ripping VSCO members' pages.
|
||||
* For ripping VSCO pictures.
|
||||
*/
|
||||
public class VscoRipper extends AbstractHTMLRipper{
|
||||
|
||||
@ -31,6 +28,12 @@ public class VscoRipper extends AbstractHTMLRipper{
|
||||
super(url);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks to see if VscoRipper can Rip specified url.
|
||||
* @param url
|
||||
* @return True if can rip.
|
||||
* False if cannot rip.
|
||||
*/
|
||||
@Override
|
||||
public boolean canRip(URL url) {
|
||||
if (!url.getHost().endsWith(DOMAIN)) {
|
||||
@ -44,7 +47,7 @@ public class VscoRipper extends AbstractHTMLRipper{
|
||||
!u.contains("/feed/") ||
|
||||
!u.contains("/login/") ||
|
||||
!u.contains("/journal/") ||
|
||||
!u.contains("/collection")||
|
||||
!u.contains("/collection/")||
|
||||
!u.contains("/images/") ||
|
||||
u.contains("/media/");
|
||||
|
||||
@ -57,7 +60,8 @@ public class VscoRipper extends AbstractHTMLRipper{
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursion FTW
|
||||
* <p>Gets the direct URL of full-sized image through the <meta> tag.</p>
|
||||
* When expanding future functionality (e.g. support from journals), put everything into this method.
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user