jonniek / mpv-playlistmanager

Mpv lua script to create and manage playlists
The Unlicense
551 stars 42 forks source link

No Duplicates #72

Closed Cananbolt closed 2 years ago

Cananbolt commented 2 years ago

When pressing the keybind to load files, is there a way for the script not to load files that were already in the playlist? Hence, no duplicates.

jonniek commented 2 years ago

Quick fix in bc139f779080469840c55504acbbf36a7c9e6427

It's naive and only looks at filenames for duplicates. Duplicate filenames between directories is not handled, because I'm not sure how that would be done correctly.

Cananbolt commented 2 years ago

I went ahead and tried it out, and this is exactly what I wanted. Thank you so much.