Skip to content

Instantly share code, notes, and snippets.

@igloo15
Created September 16, 2020 22:05
Show Gist options
  • Save igloo15/07855a16a46589b7c48eb86f36ad051e to your computer and use it in GitHub Desktop.
Save igloo15/07855a16a46589b7c48eb86f36ad051e to your computer and use it in GitHub Desktop.
Renamer Script for shows
function(index, item) {
var title = "Samurai.Champloo.";
var titleRemoveDots = title.replace(".", " ").replace(".", " ");
var startIndex = item.path.indexOf(title) + 17;
return titleRemoveDots + item.path.substring(startIndex, startIndex+6);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment