v21 file names with dots only as seperators result in incorrect search expressions - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Information Providers (scrapers) (https://forum.kodi.tv/forumdisplay.php?fid=147) +----- Forum: Movie Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=302) +----- Thread: v21 file names with dots only as seperators result in incorrect search expressions (/showthread.php?tid=377421) |
file names with dots only as seperators result in incorrect search expressions - gregorv - 2024-05-06 Kodi 21.0, probably also Kodi 19 at least I am pretty sure that the issue did not exist with Matrix (which was running until 04-2024) Since a long time I am using my own scraper to read xml tags from mkv files, however recently I found that some files fail to scrape. Further investigation showed that in fail cases the filename (which is the movie name) is not deliverd correctly to the scraper. If the filename has dots only as seperator (like M.A.S.H.mkv) then Kodi replaces the dots with spaces - see log extract.
The search expression 'M A S H' does not match the file name 'M.A.S.H' and so the file cannot be found by the scraper. BUT as soon as there are also spaces in the filename (except trailing spaces) the search expression is correct - see log extract.
my setting in advancedsettings.xml
I tried to dig throug the <cleanstring> description, but did not find a way how to change this behaviour. Any ideas ? Thanks Gregor RE: file names with dots only as seperators result in incorrect search expressions - gregorv - 2024-05-12 From the documentation I read that '.' and '_' are considerted as seperators, like ' '. But it does not say that such seperators are replaced by spaces. In fact it only replaces '.' if there are no other seperators are existing in the filename. I don't think this is intended behaviour. |