Fix furaffinity text file naming. Closes #479

This commit is contained in:
MetaPrime 2017-05-09 13:39:00 -07:00
parent b64a649635
commit 2ea059c2d3

View File

@ -177,6 +177,7 @@ public class FuraffinityRipper extends AbstractHTMLRipper {
String saveAs = "";
File saveFileAs;
saveAs = text.split("\n")[0];
saveAs = saveAs.replaceAll("^(\\S+)\\s+by\\s+(.*)$", "$2_$1");
for (int i = 1;i < text.split("\n").length; i++) {
newText = newText.replace("\\","").replace("/","").replace("~","") + "\n" + text.split("\n")[i];
}