mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-08 23:06:54 +02:00
Improved file naming
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user