* allow passing in format expression via --def

This commit is contained in:
Reinhard Pointner 2012-11-26 09:11:14 +00:00
parent 8592525cfb
commit b7feb548ce
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ def gmail = tryQuietly{ gmail.split(':', 2) }
// series/anime/movie format expressions
def format = [
tvs: '''TV Shows/{n}/{episode.special ? "Special" : "Season "+s}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t}''',
anime: '''Anime/{n}/{n} - {sxe} - {t}''',
mov: '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}'''
tvs: tryQuietly{ seriesFormat } ?: '''TV Shows/{n}/{episode.special ? "Special" : "Season "+s}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t}''',
anime: tryQuietly{ animeFormat } ?: '''Anime/{n}/{n} - {sxe} - {t}''',
mov: tryQuietly{ movieFormat } ?: '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}'''
]