How to remove prefixed order numbers from filenames before scraping - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: How to remove prefixed order numbers from filenames before scraping (/showthread.php?tid=288793) |
How to remove prefixed order numbers from filenames before scraping - primehalo - 2016-08-30 Hello, I'm not sure if this is the correct forum to post this question but I'd like to know if there is a way to remove order numbers from movie filenames before scraping. To clarify, I have some directories containing multiple files of a set and those files start with numbers so that they are in the proper order, like so: 01. Friday the 13th (1980).mp4 02. Friday the 13th Part 2 (1981).mp4 03. Friday the 13th Part 3 (1982).mp4 04. Friday the 13th - The Final Chapter (1984).mp4 05. Friday the 13th - A New Beginning (1985).mp4 06. Friday the 13th Part VI - Jason Lives (1986).mp4 07. Friday the 13th Part VII - The New Blood (1988).mp4 08. Friday the 13th Part VIII - Jason Takes Manhattan (1989).mp4 09. Jason Goes to Hell - The Final Friday (1993).mp4 10. Jason X (2001).mp4 11. Friday The 13th (2009).mp4 I'm aware that ordering can be set with .nfo files but I am not just using Kodi to access these files, I have other media players that don't use .nfo files so I'd like to keep the numbers. The numbers cause the The Movie Database scraper to not pick up the movies so is there some setting or regex I can add somewhere which will tell the scraper to remove these numbers before scraping? Thanks. |