2 typo fixup

* add missing namespace of StandardCharsets
* use an unused constructor argument
This commit is contained in:
kapodamy 2020-01-18 01:10:25 -03:00
parent ed18466c3b
commit a2d3e2c7e0

View file

@ -12,7 +12,7 @@ import org.schabi.newpipe.streams.io.SharpStream;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.text.ParseException; import java.nio.charset.StandardCharsets;
/** /**
* @author kapodamy * @author kapodamy
@ -28,7 +28,7 @@ public class SrtFromTtmlWriter {
public SrtFromTtmlWriter(SharpStream out, boolean ignoreEmptyFrames) { public SrtFromTtmlWriter(SharpStream out, boolean ignoreEmptyFrames) {
this.out = out; this.out = out;
this.ignoreEmptyFrames = true; this.ignoreEmptyFrames = ignoreEmptyFrames;
} }
private static String getTimestamp(Element frame, String attr) { private static String getTimestamp(Element frame, String attr) {