Improved file naming
This commit is contained in:
parent
be093b069a
commit
fe3722674c
@ -255,13 +255,13 @@ public class FuraffinityRipper extends AbstractHTMLRipper {
|
|||||||
String fileExt = fileExtSplit[fileExtSplit.length -1];
|
String fileExt = fileExtSplit[fileExtSplit.length -1];
|
||||||
fileName = fileName.replaceAll(fileExt, "");
|
fileName = fileName.replaceAll(fileExt, "");
|
||||||
File saveAS;
|
File saveAS;
|
||||||
|
fileName = fileName.replace("[0-9]*\\.", "");
|
||||||
saveAS = new File(
|
saveAS = new File(
|
||||||
workingDir.getCanonicalPath()
|
workingDir.getCanonicalPath()
|
||||||
+ File.separator
|
+ File.separator
|
||||||
+ fileName
|
+ fileName
|
||||||
+ "."
|
+ "."
|
||||||
+ fileExt);
|
+ fileExt);
|
||||||
fileName = fileName.replace("[0-9]*\\.", "");
|
|
||||||
addURLToDownload(new URL(link),saveAS,"",cookies);
|
addURLToDownload(new URL(link),saveAS,"",cookies);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("[!] Exception while loading/parsing " + this.url, e);
|
logger.error("[!] Exception while loading/parsing " + this.url, e);
|
||||||
|
Loading…
Reference in New Issue
Block a user