2019-11-24, 19:52
I've had an issue with duplicates for a while. I tracked down the cause to percent encoding in paths having changed to uppercase at some point.
These are the <filenameandpath> tags for two different entries from a exported xml library file. You can see the difference right at the start after smb (%3a vs. %3A).
<filenameandpath>rar://smb%3a%2f%2fBOX%2f_film%2fIsle.of.Dogs.2018.720p%2fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
<filenameandpath>rar://smb%3A%2F%2FBOX%2F_film%2FIsle.of.Dogs.2018.720p%2Fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
Urldecoded these are identifical:
1. How can I fix this in my library? I tried export, change all to uppercase, import. But then I got even more duplicates. I don't want to lose playstate.
2. If one assume the problem should be solved with URL normalization (see wikipedia on that term). What part has that responsibility? Core, scraper or VFS-addon? I want to submit a bug report.
These are the <filenameandpath> tags for two different entries from a exported xml library file. You can see the difference right at the start after smb (%3a vs. %3A).
<filenameandpath>rar://smb%3a%2f%2fBOX%2f_film%2fIsle.of.Dogs.2018.720p%2fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
<filenameandpath>rar://smb%3A%2F%2FBOX%2F_film%2FIsle.of.Dogs.2018.720p%2Fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
Urldecoded these are identifical:
xml:<filenameandpath>rar://smb%3a%2f%2fBOX%2f_film%2fIsle.of.Dogs.2018.720p%2fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
<filenameandpath>rar://smb%3A%2F%2FBOX%2F_film%2FIsle.of.Dogs.2018.720p%2Fisle.of.dogs.2018.720p.rar/Isle.of.Dogs.2018.720p.mkv</filenameandpath>
1. How can I fix this in my library? I tried export, change all to uppercase, import. But then I got even more duplicates. I don't want to lose playstate.
2. If one assume the problem should be solved with URL normalization (see wikipedia on that term). What part has that responsibility? Core, scraper or VFS-addon? I want to submit a bug report.