codl/autoplay

correctly detect duplicate tracks

Closed this issue · 3 comments

if the client works on the same host as the server and has read access to the database it would be perfect to correctly detect symlinked tracks and tracks under symlinked directories.

Until this is not done, it determines symlinked tracks and tracks under symlinked directories as different and will push them to the playlist more often. I'm sure this was not intended initially.

codl commented

Sorry, forgot to document and close this.
Duplicate inodes (so, symlinks and hardlinks) were ignored from 112c441 onwards, but only one of them would ever be added to the playlist and listening to the others would be ignored.
From 0d7a62c onwards, duplicates properly act like a single track.

EDIT: oh and for this to work, you need the MPD_MUSIC_DIR variable set

Well... I don't get how can I call db update with the current version...

Okay, I have not realized that now log is being written to a standard location.