Sharing my ultimate format

All about user-defined episode / movie format expressions
Post Reply
fireheart2008
Posts: 31
Joined: 29 Jul 2014, 05:39

Sharing my ultimate format

Post by fireheart2008 » 25 Dec 2018, 01:56

for movies

Code: Select all

{file.path[0]}:/

Movies/

{if('Animation' in genres) {'Animation/'} else if (info.SpokenLanguages[0]=~ /en/) {''} else  {'[Non-English]/'}}
{ any{ '[Collections]/' + collection.sortName() }{ genres.minus('Animation')[0]} }/

{if (collection) {y}} {norm = {it.upperInitial().lowerTrail().replaceTrailingBrackets().replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}; norm(n)}{if (norm(n) != norm(primaryTitle)) ' ('+norm(primaryTitle)+')'}{' (' + fn.matchAll(/extended|uncensored|remastered|ultimate|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'} {['TMDB '+rating]}{" [$y]"}{" [$vf]"} /

{norm(n)}{' (' + fn.matchAll(/extended|uncensored|remastered|ultimate|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'} {[y]} {" [$vf]"}{" Part $pi"}{'.'+lang}
and this is what it does
Image


my tv series & anime format

Code: Select all

{file.path[0]}:/

{genres.contains('Animation') ? 'Anime/' : languages[0]=~ /eng/ ? 'TV Series': 'TV Series/[Non-English]'}/

{n}/

{languages[0]=~ /jpn/ && genres.contains('Animation') ? 'Episodes/'+n +' E' + absolute.pad(2) : n+ ' S'+s.pad(2)+'/'+n+' '+s00e00} {t}{" [$vf]"}{'.'+lang}
and it does this


Image

important
both use themoviedb as database

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests