I would like to make just the movie folder have (.) between spaces NOT the collection folder section. Here is the code I am using...
Code: Select all
{
   norm = {
      it.colon(' - ')
      .tr('*?|', ' !-')
      .asciiQuotes()
      .replaceAll(/\b(?i)[IVX]+\b/, { it.upper() })
      .replaceAll(/\b[0-9](?i:st|nd|rd|th)\b/, { it.lower() })
      .replaceAll(/(Collection) of the (.+)/, /$2 $1/)
      .replaceAll(/(Saga) Collection/, /$1/)
      .replaceAll(/^(?i)(The|A|An|Der|Die|Das) (.+)/, /$2, $1/)
   };
   path = allOf{ norm(collection) }{ norm(n) }.join('/');
   path[0].replaceAll(/\W|\d/, '#') + '/' + path
}{
   norm(n) != norm(primaryTitle) ? ' (' + primaryTitle + ')' : null
}{
   fn =~ /3D|3-D/ ? ' 3D' : null
} ({y})/{
   allOf
      {n.asciiQuotes().removeAll(/[,!]/)}
      {fn =~ /3D|3-D/ ? '3D' : null}
      {'(' + tags.join(', ') + ')'}
      {y}{'Part'+pi}
      {vf}{vc}{ac}{af}
   .join('.').space('.')
}so it would be simialr to this: H:/M/Man From Earth Collection/The.Man.From.Earth.2007.1080p.HD.x265.Bluray-ALLiANCE/The.Man.From.Earth.2007.mkv