1
0

No, it skips 2 tracks instead of 1. Let's get back to -2.

This commit is contained in:
Alexander Andreev 2022-08-30 18:20:24 +04:00
parent 49793150b3
commit 98b0a8085a
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -150,7 +150,7 @@ func lastPlayedSongs(playlistPath string, n int) ([]Song, error) {
n = len(lines) n = len(lines)
} }
lines = lines[len(lines)-n-3 : len(lines)-3] lines = lines[len(lines)-n-2 : len(lines)-2]
for _, line := range lines { for _, line := range lines {
fields := bytes.Split(line, []byte("|")) fields := bytes.Split(line, []byte("|"))