(2024-10-05, 10:20)jbinkley60 Wrote: (2024-10-04, 20:51)rafi1 Wrote: I have a request to also find and delete duplicates with similar paths but capitalization difference. See an example in here:
https://github.com/jbinkley60/plugin.pro...r/issues/6
KSCleaner is currently detecting duplicates across paths but the question is what is the proper way to clean these in Kodi ? I could look to add this type of functionality in KSCleaner in a few ways:
1. Expose the path table in the KSClleaner browsing function and let the user delete the duplicate path (and underlying media)
2. Add selective deletion of individual items in the KSCleaner browsing function
3. Add an option to delete duplicates from the duplicate analyzer with the user deciding which of the dupes to delete
My take is to make is as simple as possible, but auto-global & smart:
1. Detect these as you do today
2a. If there is a mismatch with the defined source path - show it, and recommend to delete everything that mismatches
2b. Following this text - Request some confirmation/selection from the user (all/skip/once)
3a if there is a mismatch only in the file name(s) (so, not related to sources) - show it and recommend to remove the one that mismatches the current file/path itself.
3b. Following this - Request confirmation/selection from the user for the first one, and offer an option to do the same for all the following (or skip them all) , or proceed/skip one by one.
Maybe, start only with #2 .
AFAIK, there is no way to easily fix it in Kodi, except for removing the related source and it's entries, cleaning everything in the media->Library, re-creating the source and re-scanning everything.