jonniek / mpv-playlistmanager

Mpv lua script to create and manage playlists
The Unlicense
522 stars 41 forks source link

Load files to playlist and load files on start create duplicate files on playlist #139

Open kevin-hub2020 opened 2 months ago

kevin-hub2020 commented 2 months ago

When creating a playlist either manually or automatically create duplicated entries after all correct entries are appended. I have attached an image for reference. You can see episodes 2,3,4,5 append after episode 5, when adding files, it says it added 4 but shows it added more than that. sorting_error

fidodido48 commented 3 weeks ago

Same here. I load the whole dir via mpv <dir> and there are duplicates created in the playlist (both on dir load and next file play). Check out attached img. dubbled_pls_item

jonniek commented 1 day ago

Seems like this lookup is the issue https://github.com/jonniek/mpv-playlistmanager/blob/a8d7f452aa61b1a9efb165b8baaaa4bec50b72d3/playlistmanager.lua#L1094-L1095

Maybe it's comparing filenames with paths in some cases :thinking: