Page 1 of 1

Help with AMC Formatting

Posted: 09 Jul 2015, 16:33
by lallhands
Hi all,

I am running 4.6 on Linux. I have edited the amc.groovy script in an attempt to modify the output locations but it is not having the desired affect. I changed the formatting to the following to fit with my existing NAS structure.

Code: Select all

// series/anime/movie format expressions
def format = [
	tvs:   any{ seriesFormat }{ '''MYtvhows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}''' },
	anime: any{ animeFormat  }{ '''MYmovies/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replacePart(', Part $1')}''' },
	mov:   any{ movieFormat  }{ '''MYmovies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}''' },
	music: any{ musicFormat  }{ '''MYmusic/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}''' },
	unsorted: any{ unsortedFormat }{ '''Unsorted/{file.structurePathTail}''' }
]
This is the only change I made in the script.

When I run the following command

Code: Select all

filebot -script fn:amc --output "/mnt/user" --log-file amc.log --action test -non-strict "/mnt/user/appdata/filebot/movies" --def excludeList=amc.txt
I get

Code: Select all

Locking /mnt/user/appdata/filebot/logs/amc.log
Run script [fn:amc] at [Thu Jul 09 09:10:13 PDT 2015]
Parameter: excludeList = amc.txt
Argument: /mnt/user/appdata/filebot/movies
Using excludes: /mnt/user/amc.txt (0)
Input: /mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_01.mkv
Input: /mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_02.mkv
Group: [mov:shrek 2 2004] => [Shrek 2_01.mkv, Shrek 2_02.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_01.mkv]
Auto-detect movie from context: [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_02.mkv]
[TEST] Rename [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_01.mkv] to [/mnt/user/Movies/Shrek 2 (2004)/Shrek 2 (2004) CD1.mkv]
[TEST] Rename [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_02.mkv] to [/mnt/user/Movies/Shrek 2 (2004)/Shrek 2 (2004) CD2.mkv]
Processed 2 files
Done ã¾(ï¼ âã¼âï¼ )ã
So I expected to see

Code: Select all

[TEST] Rename [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_01.mkv] to [/mnt/user/MYmovies/Shrek 2 (2004)/Shrek 2 (2004) CD1.mkv]
[TEST] Rename [/mnt/user/appdata/filebot/movies/Shrek 2/Shrek 2_02.mkv] to [/mnt/user/MYmovies/Shrek 2 (2004)/Shrek 2 (2004) CD2.mkv]
Any help or tips are welcome.

Cheers,

lallhands

Re: Help with AMC Formatting

Posted: 09 Jul 2015, 16:54
by rednoah
1.
If you just wanna override the output formats I highly recommend doing that via the --def ***Format parameters.

2.
If you have your own modified amc script? Why do you still use the online amc script? If you want to use your own script you need to specify it via -script /path/to/amc.groovy otherwise -script fn:amc will tell filebot to the use the script in the online github repository.

Re: Help with AMC Formatting

Posted: 09 Jul 2015, 18:29
by lallhands
#2 did the trick! Thanks pal. Guess I missed that when reading the howtos.

Cheers,

lallhands

*** Edit ***

Thanks again for your help. Everything working perfectly. Donating now to your fund!