Group issue & using ut_title?
Posted: 09 Dec 2016, 22:35
Hey there again,
while trying to enhance my naming a little I ran into an issue.
My files for this release are in the format:
Now Coalgirls is on the list, but it's not picked up for use with {group}. Even just using a simple "{sxe} [{group}]" doesn't work (just to make sure nothing interferes). When I rername one of the files to this for testing:
This works perfectly fine, so I guess Filebot expects the group at the start of the filename? I thought it was supposed to use whatever group came last 
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:
But I would prefer using the ut_title since that is under my control. Using this format doesn't work though:
I thought the ut_ parameters were put into the ut object here: https://github.com/filebot/scripts/blob ... roovy#L116 But apparently I'm off on that 
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
):
Complete console output:
PS: I had a little issue when I forgot to escape the opening bracket of "[Hi10". The GUI would tell me "Suppressed: Unclosed group near index 4[Hi10 ^", but the command line didn't give me any hint on that. Just throwing that out there 
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 Òâ¥(´╝áÔîÆÒâ╝ÔîÆ´╝á)ÒâÄ
