1.0.58 - Logs are written to the album's subdirectory

Closes #61
This commit is contained in:
4pr0n 2014-06-07 18:03:40 -07:00
parent e88d00ddee
commit fe24620e47
43 changed files with 8 additions and 88 deletions

View File

@ -10,6 +10,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Observable; import java.util.Observable;
import org.apache.log4j.FileAppender;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.jsoup.HttpStatusException; import org.jsoup.HttpStatusException;
@ -68,6 +69,11 @@ public abstract class AbstractRipper
} }
this.url = sanitizeURL(url); this.url = sanitizeURL(url);
setWorkingDir(url); setWorkingDir(url);
Logger rootLogger = Logger.getRootLogger();
FileAppender fa = (FileAppender) rootLogger.getAppender("FILE");
fa.setFile(this.workingDir + File.separator + "log.txt");
fa.activateOptions();
this.threadPool = new DownloadThreadPool(); this.threadPool = new DownloadThreadPool();
} }

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ public class ButttoucherRipper extends AlbumRipper {
private static final String DOMAIN = "butttoucher.com", private static final String DOMAIN = "butttoucher.com",
HOST = "butttoucher"; HOST = "butttoucher";
private static final Logger logger = Logger.getLogger(ButttoucherRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -8,7 +8,6 @@ import java.util.Set;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,8 +17,6 @@ import com.rarchives.ripme.utils.Utils;
public class ChanRipper extends AlbumRipper { public class ChanRipper extends AlbumRipper {
private static final Logger logger = Logger.getLogger(ChanRipper.class);
public ChanRipper(URL url) throws IOException { public ChanRipper(URL url) throws IOException {
super(url); super(url);
} }

View File

@ -11,7 +11,6 @@ import java.util.Map;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -30,7 +29,6 @@ public class DeviantartRipper extends AlbumRipper {
HOST = "deviantart"; HOST = "deviantart";
private static final int SLEEP_TIME = 2000; private static final int SLEEP_TIME = 2000;
private static final Logger logger = Logger.getLogger(DeviantartRipper.class);
private Map<String,String> cookies = new HashMap<String,String>(); private Map<String,String> cookies = new HashMap<String,String>();

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -20,7 +19,6 @@ public class DrawcrowdRipper extends AlbumRipper {
private static final String DOMAIN = "drawcrowd.com", private static final String DOMAIN = "drawcrowd.com",
HOST = "drawcrowd"; HOST = "drawcrowd";
private static final Logger logger = Logger.getLogger(DrawcrowdRipper.class);
public DrawcrowdRipper(URL url) throws IOException { public DrawcrowdRipper(URL url) throws IOException {
super(url); super(url);
@ -42,7 +40,6 @@ public class DrawcrowdRipper extends AlbumRipper {
public String getGID(URL url) throws MalformedURLException { public String getGID(URL url) throws MalformedURLException {
Pattern p; Matcher m; Pattern p; Matcher m;
p = Pattern.compile("^.*drawcrowd.com/projects/.*$"); p = Pattern.compile("^.*drawcrowd.com/projects/.*$");
m = p.matcher(url.toExternalForm()); m = p.matcher(url.toExternalForm());
if (m.matches()) { if (m.matches()) {

View File

@ -7,7 +7,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -25,7 +24,6 @@ public class EHentaiRipper extends AlbumRipper {
private static final int IP_BLOCK_SLEEP_TIME = 60 * 1000; private static final int IP_BLOCK_SLEEP_TIME = 60 * 1000;
private static final String DOMAIN = "g.e-hentai.org", HOST = "e-hentai"; private static final String DOMAIN = "g.e-hentai.org", HOST = "e-hentai";
private static final Logger logger = Logger.getLogger(EHentaiRipper.class);
// Thread pool for finding direct image links from "image" pages (html) // Thread pool for finding direct image links from "image" pages (html)
private DownloadThreadPool ehentaiThreadPool = new DownloadThreadPool("ehentai"); private DownloadThreadPool ehentaiThreadPool = new DownloadThreadPool("ehentai");

View File

@ -7,7 +7,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -22,7 +21,6 @@ public class EightmusesRipper extends AlbumRipper {
private static final String DOMAIN = "8muses.com", private static final String DOMAIN = "8muses.com",
HOST = "8muses"; HOST = "8muses";
private static final Logger logger = Logger.getLogger(EightmusesRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ public class FapprovedRipper extends AlbumRipper {
private static final String DOMAIN = "fapproved.com", private static final String DOMAIN = "fapproved.com",
HOST = "fapproved"; HOST = "fapproved";
private static final Logger logger = Logger.getLogger(FapprovedRipper.class);
public FapprovedRipper(URL url) throws IOException { public FapprovedRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -10,7 +10,6 @@ import java.util.Set;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -27,7 +26,6 @@ public class FlickrRipper extends AlbumRipper {
private static final String DOMAIN = "flickr.com", private static final String DOMAIN = "flickr.com",
HOST = "flickr"; HOST = "flickr";
private static final Logger logger = Logger.getLogger(FlickrRipper.class);
private DownloadThreadPool flickrThreadPool; private DownloadThreadPool flickrThreadPool;
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -8,10 +8,9 @@ import java.util.Map;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
import org.jsoup.Jsoup;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
import org.jsoup.select.Elements; import org.jsoup.select.Elements;
@ -23,7 +22,6 @@ public class GifyoRipper extends AlbumRipper {
private static final String DOMAIN = "gifyo.com", private static final String DOMAIN = "gifyo.com",
HOST = "gifyo"; HOST = "gifyo";
private static final Logger logger = Logger.getLogger(GifyoRipper.class);
public GifyoRipper(URL url) throws IOException { public GifyoRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -17,7 +16,6 @@ import com.rarchives.ripme.utils.Utils;
public class GonewildRipper extends AlbumRipper { public class GonewildRipper extends AlbumRipper {
private static final String HOST = "gonewild"; private static final String HOST = "gonewild";
private static final Logger logger = Logger.getLogger(GonewildRipper.class);
private static final int SLEEP_TIME = 1000; private static final int SLEEP_TIME = 1000;
private static String API_DOMAIN; private static String API_DOMAIN;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ public class ImagearnRipper extends AlbumRipper {
private static final String DOMAIN = "imagearn.com", private static final String DOMAIN = "imagearn.com",
HOST = "imagearn"; HOST = "imagearn";
private static final Logger logger = Logger.getLogger(ImagearnRipper.class);
public ImagearnRipper(URL url) throws IOException { public ImagearnRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -19,7 +18,6 @@ public class ImagefapRipper extends AlbumRipper {
private static final String DOMAIN = "imagefap.com", private static final String DOMAIN = "imagefap.com",
HOST = "imagefap"; HOST = "imagefap";
private static final Logger logger = Logger.getLogger(ImagefapRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
@ -20,7 +19,6 @@ public class ImagestashRipper extends AlbumRipper {
private static final String DOMAIN = "imagestash.org", private static final String DOMAIN = "imagestash.org",
HOST = "imagestash"; HOST = "imagestash";
private static final Logger logger = Logger.getLogger(ImagestashRipper.class);
public ImagestashRipper(URL url) throws IOException { public ImagestashRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -20,7 +19,6 @@ public class ImgboxRipper extends AlbumRipper {
private static final String DOMAIN = "imgbox.com", private static final String DOMAIN = "imgbox.com",
HOST = "imgbox"; HOST = "imgbox";
private static final Logger logger = Logger.getLogger(ImgboxRipper.class);
public ImgboxRipper(URL url) throws IOException { public ImgboxRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -9,7 +9,6 @@ import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -26,7 +25,6 @@ public class ImgurRipper extends AlbumRipper {
private static final String DOMAIN = "imgur.com", private static final String DOMAIN = "imgur.com",
HOST = "imgur"; HOST = "imgur";
private static final Logger logger = Logger.getLogger(ImgurRipper.class);
private final int SLEEP_BETWEEN_ALBUMS; private final int SLEEP_BETWEEN_ALBUMS;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -20,7 +19,6 @@ public class InstagramRipper extends AlbumRipper {
private static final String DOMAIN = "instagram.com", private static final String DOMAIN = "instagram.com",
HOST = "instagram"; HOST = "instagram";
private static final Logger logger = Logger.getLogger(InstagramRipper.class);
public InstagramRipper(URL url) throws IOException { public InstagramRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -4,7 +4,6 @@ import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -21,8 +20,7 @@ public class IrarchivesRipper extends AlbumRipper {
private static final String DOMAIN = "i.rarchives.com", private static final String DOMAIN = "i.rarchives.com",
HOST = "irarchives"; HOST = "irarchives";
private static final Logger logger = Logger.getLogger(IrarchivesRipper.class);
public IrarchivesRipper(URL url) throws IOException { public IrarchivesRipper(URL url) throws IOException {
super(url); super(url);
} }

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -17,7 +16,6 @@ import com.rarchives.ripme.utils.Utils;
public class KinkyshareRipper extends AlbumRipper { public class KinkyshareRipper extends AlbumRipper {
private static final String HOST = "kinkyshare"; private static final String HOST = "kinkyshare";
private static final Logger logger = Logger.getLogger(KinkyshareRipper.class);
public KinkyshareRipper(URL url) throws IOException { public KinkyshareRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -13,7 +13,6 @@ import java.util.regex.Pattern;
import javax.swing.JOptionPane; import javax.swing.JOptionPane;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -28,7 +27,6 @@ public class MediacrushRipper extends AlbumRipper {
private static final String DOMAIN = "mediacru.sh", private static final String DOMAIN = "mediacru.sh",
HOST = "mediacrush"; HOST = "mediacrush";
private static final Logger logger = Logger.getLogger(MediacrushRipper.class);
/** Ordered list of preferred formats, sorted by preference (low-to-high) */ /** Ordered list of preferred formats, sorted by preference (low-to-high) */
private static final Map<String, Integer> PREFERRED_FORMATS = new HashMap<String,Integer>(); private static final Map<String, Integer> PREFERRED_FORMATS = new HashMap<String,Integer>();

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
@ -21,7 +20,6 @@ public class MinusRipper extends AlbumRipper {
private static final String DOMAIN = "minus.com", private static final String DOMAIN = "minus.com",
HOST = "minus"; HOST = "minus";
private static final Logger logger = Logger.getLogger(MinusRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -8,7 +8,6 @@ import java.util.Map;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Connection.Method; import org.jsoup.Connection.Method;
@ -24,7 +23,6 @@ public class ModelmayhemRipper extends AlbumRipper {
private static final String DOMAIN = "modelmayhem.com", private static final String DOMAIN = "modelmayhem.com",
HOST = "modelmayhem"; HOST = "modelmayhem";
private static final Logger logger = Logger.getLogger(ModelmayhemRipper.class);
public ModelmayhemRipper(URL url) throws IOException { public ModelmayhemRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -19,7 +18,6 @@ public class MotherlessRipper extends AlbumRipper {
private static final String DOMAIN = "motherless.com", private static final String DOMAIN = "motherless.com",
HOST = "motherless"; HOST = "motherless";
private static final Logger logger = Logger.getLogger(MotherlessRipper.class);
private DownloadThreadPool motherlessThreadPool; private DownloadThreadPool motherlessThreadPool;

View File

@ -8,7 +8,6 @@ import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -23,7 +22,6 @@ public class NfsfwRipper extends AlbumRipper {
private static final String DOMAIN = "nfsfw.com", private static final String DOMAIN = "nfsfw.com",
HOST = "nfsfw"; HOST = "nfsfw";
private static final Logger logger = Logger.getLogger(NfsfwRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -8,7 +8,6 @@ import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Connection.Response; import org.jsoup.Connection.Response;
@ -23,7 +22,6 @@ public class PhotobucketRipper extends AlbumRipper {
private static final String DOMAIN = "photobucket.com", private static final String DOMAIN = "photobucket.com",
HOST = "photobucket"; HOST = "photobucket";
private static final Logger logger = Logger.getLogger(PhotobucketRipper.class);
private Response pageResponse = null; private Response pageResponse = null;

View File

@ -8,7 +8,6 @@ import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.json.JSONTokener; import org.json.JSONTokener;
@ -28,7 +27,6 @@ public class RedditRipper extends AlbumRipper {
private static final String HOST = "reddit"; private static final String HOST = "reddit";
private static final String DOMAIN = "reddit.com"; private static final String DOMAIN = "reddit.com";
private static final Logger logger = Logger.getLogger(RedditRipper.class);
private static final int SLEEP_TIME = 2000; private static final int SLEEP_TIME = 2000;
//private static final String USER_AGENT = "ripme by /u/4_pr0n github.com/4pr0n/ripme"; //private static final String USER_AGENT = "ripme by /u/4_pr0n github.com/4pr0n/ripme";

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
@ -19,7 +18,6 @@ public class SeeniveRipper extends AlbumRipper {
private static final String DOMAIN = "seenive.com", private static final String DOMAIN = "seenive.com",
HOST = "seenive"; HOST = "seenive";
private static final Logger logger = Logger.getLogger(SeeniveRipper.class);
private DownloadThreadPool seeniveThreadPool; private DownloadThreadPool seeniveThreadPool;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ public class SmuttyRipper extends AlbumRipper {
private static final String DOMAIN = "smutty.com", private static final String DOMAIN = "smutty.com",
HOST = "smutty"; HOST = "smutty";
private static final Logger logger = Logger.getLogger(SmuttyRipper.class);
public SmuttyRipper(URL url) throws IOException { public SmuttyRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.HttpStatusException; import org.jsoup.HttpStatusException;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
@ -20,7 +19,6 @@ public class SupertangasRipper extends AlbumRipper {
private static final String DOMAIN = "supertangas.com", private static final String DOMAIN = "supertangas.com",
HOST = "supertangas"; HOST = "supertangas";
private static final Logger logger = Logger.getLogger(SupertangasRipper.class);
public SupertangasRipper(URL url) throws IOException { public SupertangasRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -19,7 +18,6 @@ public class TeenplanetRipper extends AlbumRipper {
private static final String DOMAIN = "teenplanet.org", private static final String DOMAIN = "teenplanet.org",
HOST = "teenplanet"; HOST = "teenplanet";
private static final Logger logger = Logger.getLogger(TeenplanetRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -19,7 +18,6 @@ public class TumblrRipper extends AlbumRipper {
private static final String DOMAIN = "tumblr.com", private static final String DOMAIN = "tumblr.com",
HOST = "tumblr"; HOST = "tumblr";
private static final Logger logger = Logger.getLogger(TumblrRipper.class);
private enum ALBUM_TYPE { private enum ALBUM_TYPE {
SUBDOMAIN, SUBDOMAIN,

View File

@ -8,7 +8,6 @@ import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -23,7 +22,6 @@ public class TwitterRipper extends AlbumRipper {
private static final String DOMAIN = "twitter.com", private static final String DOMAIN = "twitter.com",
HOST = "twitter"; HOST = "twitter";
private static final Logger logger = Logger.getLogger(TwitterRipper.class);
private static final int MAX_REQUESTS = Utils.getConfigInteger("twitter.max_requests", 10); private static final int MAX_REQUESTS = Utils.getConfigInteger("twitter.max_requests", 10);
private static final int WAIT_TIME = 2000; private static final int WAIT_TIME = 2000;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.select.Elements; import org.jsoup.select.Elements;
@ -19,7 +18,6 @@ public class VidbleRipper extends AlbumRipper {
private static final String DOMAIN = "vidble.com", private static final String DOMAIN = "vidble.com",
HOST = "vidble"; HOST = "vidble";
private static final Logger logger = Logger.getLogger(VidbleRipper.class);
private Document albumDoc = null; private Document albumDoc = null;

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.HttpStatusException; import org.jsoup.HttpStatusException;
@ -20,7 +19,6 @@ public class VineRipper extends AlbumRipper {
private static final String DOMAIN = "vine.co", private static final String DOMAIN = "vine.co",
HOST = "vine"; HOST = "vine";
private static final Logger logger = Logger.getLogger(VineRipper.class);
public VineRipper(URL url) throws IOException { public VineRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.HttpStatusException; import org.jsoup.HttpStatusException;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
@ -18,7 +17,6 @@ public class VineboxRipper extends AlbumRipper {
private static final String DOMAIN = "vinebox.co", private static final String DOMAIN = "vinebox.co",
HOST = "vinebox"; HOST = "vinebox";
private static final Logger logger = Logger.getLogger(VineboxRipper.class);
public VineboxRipper(URL url) throws IOException { public VineboxRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -11,7 +11,6 @@ import java.util.Set;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -25,7 +24,6 @@ public class VkRipper extends AlbumRipper {
private static final String DOMAIN = "vk.com", private static final String DOMAIN = "vk.com",
HOST = "vk"; HOST = "vk";
private static final Logger logger = Logger.getLogger(SeeniveRipper.class);
public VkRipper(URL url) throws IOException { public VkRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ public class XhamsterRipper extends AlbumRipper {
private static final String DOMAIN = "xhamster.com", private static final String DOMAIN = "xhamster.com",
HOST = "xhamster"; HOST = "xhamster";
private static final Logger logger = Logger.getLogger(XhamsterRipper.class);
public XhamsterRipper(URL url) throws IOException { public XhamsterRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -17,7 +16,6 @@ import com.rarchives.ripme.ripper.VideoRipper;
public class BeegRipper extends VideoRipper { public class BeegRipper extends VideoRipper {
private static final String HOST = "beeg"; private static final String HOST = "beeg";
private static final Logger logger = Logger.getLogger(BeegRipper.class);
public BeegRipper(URL url) throws IOException { public BeegRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -7,7 +7,6 @@ import java.net.URLDecoder;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
@ -19,7 +18,6 @@ import com.rarchives.ripme.utils.AES;
public class PornhubRipper extends VideoRipper { public class PornhubRipper extends VideoRipper {
private static final String HOST = "pornhub"; private static final String HOST = "pornhub";
private static final Logger logger = Logger.getLogger(PornhubRipper.class);
public PornhubRipper(URL url) throws IOException { public PornhubRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.select.Elements; import org.jsoup.select.Elements;
@ -16,7 +15,6 @@ import com.rarchives.ripme.ripper.VideoRipper;
public class VineRipper extends VideoRipper { public class VineRipper extends VideoRipper {
private static final String HOST = "vine"; private static final String HOST = "vine";
private static final Logger logger = Logger.getLogger(VineRipper.class);
public VineRipper(URL url) throws IOException { public VineRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
@ -15,7 +14,6 @@ import com.rarchives.ripme.ripper.VideoRipper;
public class VkRipper extends VideoRipper { public class VkRipper extends VideoRipper {
private static final String HOST = "vk"; private static final String HOST = "vk";
private static final Logger logger = Logger.getLogger(VkRipper.class);
public VkRipper(URL url) throws IOException { public VkRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -7,7 +7,6 @@ import java.net.URLDecoder;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -18,7 +17,6 @@ import com.rarchives.ripme.ripper.VideoRipper;
public class XvideosRipper extends VideoRipper { public class XvideosRipper extends VideoRipper {
private static final String HOST = "xvideos"; private static final String HOST = "xvideos";
private static final Logger logger = Logger.getLogger(XvideosRipper.class);
public XvideosRipper(URL url) throws IOException { public XvideosRipper(URL url) throws IOException {
super(url); super(url);

View File

@ -6,7 +6,6 @@ import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
@ -17,7 +16,6 @@ import com.rarchives.ripme.ripper.VideoRipper;
public class YoupornRipper extends VideoRipper { public class YoupornRipper extends VideoRipper {
private static final String HOST = "youporn"; private static final String HOST = "youporn";
private static final Logger logger = Logger.getLogger(YoupornRipper.class);
public YoupornRipper(URL url) throws IOException { public YoupornRipper(URL url) throws IOException {
super(url); super(url);