mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 13:59:49 -04:00
Fix layout issues
This commit is contained in:
parent
d8faf12d90
commit
c5f512d34b
@ -19,7 +19,6 @@ import javax.script.SimpleBindings;
|
|||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
|
|
||||||
import net.filebot.LicenseError;
|
import net.filebot.LicenseError;
|
||||||
import net.filebot.Logging.EscapeCode;
|
|
||||||
|
|
||||||
public class ArgumentProcessor {
|
public class ArgumentProcessor {
|
||||||
|
|
||||||
@ -42,7 +41,7 @@ public class ArgumentProcessor {
|
|||||||
} catch (LicenseError e) {
|
} catch (LicenseError e) {
|
||||||
log.severe("License Error: " + e.getMessage());
|
log.severe("License Error: " + e.getMessage());
|
||||||
if (LICENSE.isFile()) {
|
if (LICENSE.isFile()) {
|
||||||
printStegosaurus();
|
printStegosaurus("Please purchase a FileBot License:", getPurchaseURL());
|
||||||
log.severe("FileBot requires a valid license. Please run `filebot --license *.psm` to install your FileBot license.");
|
log.severe("FileBot requires a valid license. Please run `filebot --license *.psm` to install your FileBot license.");
|
||||||
}
|
}
|
||||||
return 2;
|
return 2;
|
||||||
@ -131,12 +130,9 @@ public class ArgumentProcessor {
|
|||||||
}).sum() == 0 ? 1 : 0;
|
}).sum() == 0 ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printStegosaurus() {
|
private void printStegosaurus(String line1, String line2) {
|
||||||
try {
|
try {
|
||||||
String format = IOUtils.toString(getClass().getResource("Stegosaurus.format"), UTF_8);
|
log.info(format(IOUtils.toString(getClass().getResource("Stegosaurus.format"), UTF_8), line1, line2));
|
||||||
EscapeCode style = EscapeCode.isSupported() ? EscapeCode.UNDERLINE : EscapeCode.NONE;
|
|
||||||
String url = getPurchaseURL();
|
|
||||||
log.info(format(format, style.apply(url)));
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
debug.log(Level.WARNING, e::toString);
|
debug.log(Level.WARNING, e::toString);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
___________________________________________________
|
________________________________________________
|
||||||
/ Please purchase a FileBot License: \
|
/ %-46s \
|
||||||
\ 🛍️ %-46s /
|
\ %-46s /
|
||||||
---------------------------------------------------
|
------------------------------------------------
|
||||||
\ . .
|
\ . .
|
||||||
\ / `. .' "
|
\ / `. .' "
|
||||||
\ .---. < > < > .---.
|
\ .---. < > < > .---.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user