I was using a custom script since 2015 to copy my files from uTorrent and I decided to update it to the latest version of filebot.
I'm havin' a bit of trouble with the new script seriesFormat. Here's what I was using to copy my files in 2015 and was working :
uTorrent code :
Code: Select all
filebot -script "C:\Script\amc.groovy" --output "\\NASJP\Multimedia" --log-file amc.log --action copy --conflict skip -non-strict --def unsorted=y --def clean=y --def excludeList=amc.txt --def music=n artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
Code: Select all
// series/anime/movie format expressions
def format = [
tvs: tryQuietly{ seriesFormat } ?: '''//NASJP/Multimedia_TV/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{s00e00}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{'-'+fn.match(/(?:(?<=[-])\\w+$)|(?:^\\w+(?=[-]))/)}''',
anime: tryQuietly{ animeFormat } ?: '''//NASJP/Multimedia_TV/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{s00e00}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{'-'+fn.match(/(?:(?<=[-])\\w+$)|(?:^\\w+(?=[-]))/)}''',
mov: tryQuietly{ movieFormat } ?: '''Movies/{n} ({y})/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{y}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{"-$group"}''',
music: tryQuietly{ musicFormat } ?: '''Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}'''
]
Here's my tentative in the new 2017 version : (for now you can only focus on the seriesFormat, if you help me figure it out I should be able to do the others)
Code: Select all
// series/anime/movie format expressions
seriesFormat = tryQuietly{ seriesFormat } ?: '''//NASJP/Multimedia_TV/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{s00e00}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{'-'+fn.match(/(?:(?<=[-])\\w+$)|(?:^\\w+(?=[-]))/)}'''
animeFormat = any{ '''Multimedia_TV/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{s00e00}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{'-'+fn.match(/(?:(?<=[-])\\w+$)|(?:^\\w+(?=[-]))/)}''' }{ '{plex}' }
movieFormat = any{ '''Movies/{n} ({y})/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{y}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$source"}{".$vc"}{"-$group"}''' }{ '{plex}' }
musicFormat = any{ musicFormat }{ '{plex}' }
unsortedFormat = any{ '''Multimedia/Unsorted''' }{ 'Unsorted/{file.structurePathTail}' }
It's copying like this : ( in the code I've copied)
\\NASJP\Multimedia\NASJP\Multimedia_TV\TV Shows\Prison Break\Season 05\Prison.Break.S05E06.Phaeacia.HDTV.x264.mkv
Just to clarify I have two folders :
\\NASJP\Multimedia (where I have my Movies and Unsorted folders)
And (my tv show folder)
\\NASJP\Multimedia_TV\TV Shows
Any help you could give me would be greatly appreciated. Thanks in advance.