I currently use a ReplaceAll to eliminate all the crap, but it's going to be tedious to keep the code updated this way as I keep finding new snippets to remove from the filename.
I'd like to pull in a CSV list, where I can simply add new terms to the end of the CSV file quickly.
I need some code to replace each item in the filename that is found in the CSV list with a blank; something the functions like:
Code: Select all
.replaceAll(csv('B:/CrapList.csv').getall(items),"")
Irelands.Greatest.Robberies.S01E01.WEB.x264-spamTV.mkv
CSV contains:
.WEB
.x264
-spamTV
Result:
Irelands.Greatest.Robberies.S01E01.mkv
Any thoughts?