Fix furaffinity text file naming. Closes #479
This commit is contained in:
parent
b64a649635
commit
2ea059c2d3
@ -177,6 +177,7 @@ public class FuraffinityRipper extends AbstractHTMLRipper {
|
|||||||
String saveAs = "";
|
String saveAs = "";
|
||||||
File saveFileAs;
|
File saveFileAs;
|
||||||
saveAs = text.split("\n")[0];
|
saveAs = text.split("\n")[0];
|
||||||
|
saveAs = saveAs.replaceAll("^(\\S+)\\s+by\\s+(.*)$", "$2_$1");
|
||||||
for (int i = 1;i < text.split("\n").length; i++) {
|
for (int i = 1;i < text.split("\n").length; i++) {
|
||||||
newText = newText.replace("\\","").replace("/","").replace("~","") + "\n" + text.split("\n")[i];
|
newText = newText.replace("\\","").replace("/","").replace("~","") + "\n" + text.split("\n")[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user