Skip to content

Commit 1cde3f9

Browse files
author
iusenko
committed
Minor fixes
1 parent 9b8057b commit 1cde3f9

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/iusenko/subrip/BufferManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public int updateWithNext() throws IOException {
4242

4343
public int updateWithPrev() throws IOException {
4444
long backPosition = position - BUFFER_SIZE * 2;
45-
position = backPosition > 0 ? backPosition : 0l;
46-
System.err.println("seek to " + position);
45+
position = backPosition > 0 ? backPosition : 0l;
4746
file.seek(position);
4847
int read = file.read(buffer);
4948
if (read > 0) {

src/main/java/com/iusenko/subrip/SubRipParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import java.util.List;
88
import java.util.regex.Pattern;
99

10-
class SubRipParser {
10+
public class SubRipParser {
1111

1212
private static final Pattern phraseNumberPattern = Pattern.compile("^\\d+");
1313
private static final Pattern timePattern = Pattern.compile("\\d+(:\\d+)+,\\d+\\s+-->\\s+\\d+(:\\d+)+,\\d+");

0 commit comments

Comments
 (0)