Help Adding (.) to folder spaces
Posted: 23 May 2018, 14:58
I am using GUI interface with build FileBot 4.8.1 (r5375) on Windows 10.
I would like to make just the movie folder have (.) between spaces NOT the collection folder section. Here is the code I am using...
And I would like to ADD {vf}{HD}{vc}{source}{'-'+group} to the end of the folder too!
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
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