mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* cleanup logging
This commit is contained in:
parent
b5438e22a2
commit
bbee491b38
@ -260,10 +260,9 @@ public class ArgumentProcessor {
|
||||
outputFormat = getSubtitleFormatByName(output);
|
||||
|
||||
// when rewriting subtitles to target format an encoding must be defined, default to UTF-8
|
||||
if (outputEncoding == null)
|
||||
if (outputEncoding == null) {
|
||||
outputEncoding = Charset.forName("UTF-8");
|
||||
|
||||
CLILogger.config(format("Export as: %s (%s)", outputFormat, outputEncoding.displayName(Locale.ROOT)));
|
||||
}
|
||||
}
|
||||
|
||||
// lookup subtitles by hash
|
||||
@ -354,6 +353,7 @@ public class ArgumentProcessor {
|
||||
ext = outputFormat.getFilter().extension(); // adjust extension of the output file
|
||||
}
|
||||
|
||||
CLILogger.finest(format("Export [%s] as: %s / %s", subtitleFile.getName(), outputFormat, outputEncoding.displayName(Locale.ROOT)));
|
||||
data = exportSubtitles(subtitleFile, outputFormat, 0, outputEncoding);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user