MCPcopy Create free account
hub / github.com/RipMeApp/ripme / ripURL

Method ripURL

src/main/java/com/rarchives/ripme/App.java:292–304  ·  view source on GitHub ↗

Attempt to rip targetURL. @param targetURL URL to rip @param saveConfig Whether you want to save the config (?)

(String targetURL, boolean saveConfig)

Source from the content-addressed store, hash-verified

290 * @param saveConfig Whether you want to save the config (?)
291 */
292 private static void ripURL(String targetURL, boolean saveConfig) {
293 try {
294 URL url = new URI(targetURL).toURL();
295 rip(url);
296 saveHistory();
297 } catch (MalformedURLException e) {
298 logger.error("[!] Given URL is not valid. Expected URL format is http://domain.com/...");
299 // System.exit(-1);
300 } catch (Exception e) {
301 logger.error("[!] Error while ripping URL " + targetURL, e);
302 // System.exit(-1);
303 }
304 }
305
306 /**
307 * Creates an Options object, returns it.

Callers 1

handleArgumentsMethod · 0.95

Calls 3

ripMethod · 0.95
saveHistoryMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected