2020-02-18, 01:19
I'm running Kodi 18.5 on a 64 bit Win7 machine.
I have a few thousand files that I want Kodi to scrape correctly. I generally follow Kodi naming rules but also put additional info inside [brackets] at the end of file names using a batch renamer. The bracketed info seems to confuse the scraper, resulting in less than 50% of files scraping correctly. I want to keep the bracketed info. AFAIK, the cleanstrings regex https://kodi.wiki/view/Advancedsettings....eanstrings has handled this for others.
I created an .xml file in my AppData>Roaming>Kodi>userdata folder named "advancedsettings". The file contains the following:
My understanding was that this would hide the brackets, everything inside the brackets, and everything to the right of the brackets in the file names when scraping. It seems to do nothing for me though. In Kodi, the unrecognized files show their original file names while recognized files show with their library names. Manually scanning an unrecognized file after deleting the brackets and bracketed info causes it to scrape correctly (almost always). I deleted my Kodi library data and re-scraped after adding the advancedsettings.xml file. I searched all settings for a toggle but found none.
I'm stumped. Does Kodi 18.5 not use this method anymore? Is there a setting I need to use? Is my advancedsettings.xml file incorrect? I'm not a coder, but if you give me monkey instructions I should be able to follow them. Thanks.
I have a few thousand files that I want Kodi to scrape correctly. I generally follow Kodi naming rules but also put additional info inside [brackets] at the end of file names using a batch renamer. The bracketed info seems to confuse the scraper, resulting in less than 50% of files scraping correctly. I want to keep the bracketed info. AFAIK, the cleanstrings regex https://kodi.wiki/view/Advancedsettings....eanstrings has handled this for others.
I created an .xml file in my AppData>Roaming>Kodi>userdata folder named "advancedsettings". The file contains the following:
xml:
<advancedsettings version="1.0">
<video>
<cleanstrings>
<regexp>[ _\,\.\(\)\[\]\-](ac3|dts|custom|dc|remastered|divx|divx5|dsr|dsrip|dutch|dvd|dvd5|dvd9|dvdrip|dvdscr|dvdscreener|screener|dvdivx|cam|fragment|fs|hdtv|hdrip|hdtvrip|internal|limited|multisubs|ntsc|ogg|ogm|pal|pdtv|proper|repack|rerip|retail|r3|r5|bd5|se|svcd|swedish|german|read.nfo|nfofix|unrated|extended|ws|telesync|ts|telecine|tc|brrip|bdrip|480p|480i|576p|576i|720p|720i|1080p|1080i|3d|hrhd|hrhdtv|hddvd|bluray|x264|h264|xvid|xvidvd|xxx|www.www|cd[1-9]|\[.*\])([ _\,\.\(\)\[\]\-]|$)</regexp>
<regexp>(\[.*\])</regexp>
</cleanstrings>
</video>
</advancedsettings>
My understanding was that this would hide the brackets, everything inside the brackets, and everything to the right of the brackets in the file names when scraping. It seems to do nothing for me though. In Kodi, the unrecognized files show their original file names while recognized files show with their library names. Manually scanning an unrecognized file after deleting the brackets and bracketed info causes it to scrape correctly (almost always). I deleted my Kodi library data and re-scraped after adding the advancedsettings.xml file. I searched all settings for a toggle but found none.
I'm stumped. Does Kodi 18.5 not use this method anymore? Is there a setting I need to use? Is my advancedsettings.xml file incorrect? I'm not a coder, but if you give me monkey instructions I should be able to follow them. Thanks.