refactor: consolidate specid <-> filesystem mapping and always use abs paths (#309)
This commit is contained in:
@@ -125,10 +125,8 @@ func (j *Jukebox) SetPlaylist(items []string) error {
|
||||
return item.Current
|
||||
})
|
||||
|
||||
cwd, _ := os.Getwd()
|
||||
currFilename, _ := filepath.Rel(cwd, current.Filename)
|
||||
filteredItems, foundExistingTrack := filter(items, func(filename string) bool {
|
||||
return filename != currFilename
|
||||
return filename != current.Filename
|
||||
})
|
||||
|
||||
tmp, cleanup, err := tmp()
|
||||
|
||||
Reference in New Issue
Block a user