Skip to content

Commit 19c472f

Browse files
committed
Ignore the TwitchChatDownloader's stupid header
1 parent 34c0dd9 commit 19c472f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

markut.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,12 @@ func loadTwitchChatDownloaderCSVButParseManually(path string) ([]ChatMessageGrou
347347

348348
content := string(bytes)
349349
for i, line := range strings.Split(content, "\n") {
350+
if i == 0 && line == TwitchChatDownloaderCSVHeader {
351+
// If first line contains the TwitchChatDownloader's stupid header, just ignore it. Just let people have it.
352+
continue
353+
}
350354
if len(line) == 0 {
355+
// We encounter empty line usually at the end of the file. So it should be safe to break.
351356
break
352357
}
353358
pair := strings.SplitN(line, ",", 2)

0 commit comments

Comments
 (0)