while trying to enhance my naming a little I ran into an issue.
My files for this release are in the format:
Code: Select all
(Hi10)_Code_Geass_-_01_(BD_1080p)_(Coalgirls)_(Dual_Audio)_(DC1BBB7A).mkv
Code: Select all
(Coalgirls)_Code_Geass_-_01_(BD_1080p)_(Hi10)_(Dual_Audio)_(DC1BBB7A).mkv

It's actually a problem with this particular release-group. Coalgirls is not the release-group in this case, Hi10 is. Hi10anime takes subs from various sources and reworks them for their own release.
And there we are at the second issue already. I'm trying to get an expression to work that looks for "[Hi10" in the passed ut_title (using AMC) and puts it in front of the group, but I can't get it to work.
Using this works fine in the GUI and in the commandline:
Code: Select all
{sxe} [{fn =~ /\(Hi10/ ? 'Hi10 via '+{group} : 'test'}] {episodes*.absolute*.pad(3).join('-')} [{crc32}]
Code: Select all
{sxe} [{ut.title =~ /\[Hi10/ ? 'Hi10 via '+{group} : 'test'}] {episodes*.absolute*.pad(3).join('-')} [{crc32}]

I've also tried using "ut_title" and just "title" but neither worked. It doesn't even give me the "test" (which works in the GUI too), so I'm a little lost here. I mean how can the expression be neither true nor false?
It also works perfectly fine in the groovy pad (didn't even know this was a thing until now

Code: Select all
group = "TestGroup";
ut_title = "Code Geass: Lelouch of the Rebellion [Hi10]";
ut_title =~ /\[Hi10/ ? 'Hi10 via '+group : 'test'
------------------------------------Result-----------------------------------
Result: Hi10 via TestGroup
Code: Select all
PS C:\Users\tarulia> filebot -script fn:amc --log-file "C:\Users\tarulia\Downloads\BitTorrent\_organized\amc.log" --acti
on test --conflict override -non-strict --filter "s == 1 && e == 1" --def "ut_label=TV_old" "ut_title=Code Geass: Lelouc
h of the Rebellion [Hi10]" "ut_kind=multi" "ut_dir=C:\Users\tarulia\Downloads\BitTorrent\Code Geass- Lelouch of the Rebe
llion" "seriesFormat={sxe} [{ut.title =~ /\[Hi10/ ? 'Hi10 via '+{group} : 'test'}] {episodes*.absolute*.pad(3).join('-')
} [{crc32}]"
Locking C:\Users\tarulia\Downloads\BitTorrent\_organized\amc.log
Run script [fn:amc] at [Fri Dec 09 23:54:55 CET 2016]
Parameter: ut_label = TV_old
Parameter: ut_title = Code Geass: Lelouch of the Rebellion [Hi10]
Parameter: ut_kind = multi
Parameter: ut_dir = C:\Users\tarulia\Downloads\BitTorrent\Code Geass- Lelouch of the Rebellion
Parameter: seriesFormat = {sxe} [{ut.title =~ /\[Hi10/ ? 'Hi10 via '+{group} : 'test'}] {episodes*.absolute*.pad(3).join
('-')} [{crc32}]
Input: C:\Users\tarulia\Downloads\BitTorrent\Code Geass- Lelouch of the Rebellion\(Hi10)_Code_Geass_-_01_(BD_1080p)_(Coa
lgirls)_(Dual_Audio)_(DC1BBB7A) - copy.mkv
Group: [tvs:code geass lelouch of the rebellion] => [(Hi10)_Code_Geass_-_01_(BD_1080p)_(Coalgirls)_(Dual_Audio)_(DC1BBB7
A) - copy.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Code Geass Lelouch of the Rebellion]
Fetching episode data for [Code Geass: Lelouch of the Rebellion]
Apply Filter: {s == 1 && e == 1}
Include [Code Geass: Lelouch of the Rebellion - 1x01 - The Day a New Demon was Born]
[TEST] Rename [C:\Users\tarulia\Downloads\BitTorrent\Code Geass- Lelouch of the Rebellion\(Hi10)_Code_Geass_-_01_(BD_108
0p)_(Coalgirls)_(Dual_Audio)_(DC1BBB7A) - copy.mkv] to [C:\Users\tarulia\Downloads\BitTorrent\Code Geass- Lelouch of the
Rebellion\1x01 [] 001 [DC1BBB7A].mkv]
Processed 1 files
Done Òâ¥(´╝áÔîÆÒâ╝ÔîÆ´╝á)ÒâÄ
