No, it skips 2 tracks instead of 1. Let's get back to -2.
This commit is contained in:
parent
49793150b3
commit
98b0a8085a
@ -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("|"))
|
||||||
|
Loading…
Reference in New Issue
Block a user