mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 22:35:04 -05:00
* enhanced formats for AMC
This commit is contained in:
parent
ff156c69ba
commit
377506801b
@ -1,2 +1,2 @@
|
|||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
java -Xmx256m -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=portable "-Dapplication.dir=%~dp0." "-Duser.home=%~dp0." "-Djava.io.tmpdir=%~dp0temp" "-Djna.library.path=%~dp0." "-Djava.library.path=%~dp0." -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory "-Dnet.sourceforge.tuned.prefs.file=%~dp0prefs.properties" -jar "%~dp0FileBot.jar" %*
|
java -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=%~dp0." "-Duser.home=%~dp0." "-Djava.io.tmpdir=%~dp0temp" "-Djna.library.path=%~dp0." "-Djava.library.path=%~dp0." -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory "-Dnet.sourceforge.tuned.prefs.file=%~dp0prefs.properties" -jar "%~dp0FileBot.jar" %*
|
@ -89,6 +89,11 @@
|
|||||||
"date": "2011-02-18",
|
"date": "2011-02-18",
|
||||||
"text": "best app on series renaming i could find"
|
"text": "best app on series renaming i could find"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"user": "Nolan",
|
||||||
|
"date": "2013-02-15",
|
||||||
|
"text": "excellent app"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"user": "charmainebellora",
|
"user": "charmainebellora",
|
||||||
"date": "2013-01-23",
|
"date": "2013-01-23",
|
||||||
|
@ -31,8 +31,8 @@ def pushover = tryQuietly{ pushover }
|
|||||||
|
|
||||||
// series/anime/movie format expressions
|
// series/anime/movie format expressions
|
||||||
def format = [
|
def format = [
|
||||||
tvs: tryQuietly{ seriesFormat } ?: '''TV Shows/{n}/{episode.special ? "Special" : "Season "+s.pad(2)}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t}{".$lang"}''',
|
tvs: tryQuietly{ seriesFormat } ?: '''TV Shows/{n}/{episode.special ? "Special" : "Season "+s.pad(2)}/{n.replaceTrailingBrackets()} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/[!?.]+$/).replacePart(', Part $1')}{".$lang"}''',
|
||||||
anime: tryQuietly{ animeFormat } ?: '''Anime/{n}/{n} - {sxe} - {t}''',
|
anime: tryQuietly{ animeFormat } ?: '''Anime/{n}/{n} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").replacePart(', Part $1')}''',
|
||||||
mov: tryQuietly{ movieFormat } ?: '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}''',
|
mov: tryQuietly{ movieFormat } ?: '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}''',
|
||||||
music: tryQuietly{ musicFormat } ?: '''Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}'''
|
music: tryQuietly{ musicFormat } ?: '''Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}'''
|
||||||
]
|
]
|
||||||
@ -121,7 +121,7 @@ def groups = input.groupBy{ f ->
|
|||||||
|
|
||||||
// DECIDE EPISODE VS MOVIE (IF NOT CLEAR)
|
// DECIDE EPISODE VS MOVIE (IF NOT CLEAR)
|
||||||
if (tvs && mov) {
|
if (tvs && mov) {
|
||||||
def norm = { s -> s.lower().space(' ') }
|
def norm = { s -> s.ascii().lower().space(' ') }
|
||||||
def dn = norm(guessMovieFolder(f)?.name ?: '')
|
def dn = norm(guessMovieFolder(f)?.name ?: '')
|
||||||
def fn = norm(f.nameWithoutExtension)
|
def fn = norm(f.nameWithoutExtension)
|
||||||
def sn = norm(tvs)
|
def sn = norm(tvs)
|
||||||
|
Loading…
Reference in New Issue
Block a user