Created
September 16, 2020 22:05
-
-
Save igloo15/07855a16a46589b7c48eb86f36ad051e to your computer and use it in GitHub Desktop.
Renamer Script for shows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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