Using the 3D regex example
Posted: 26 Sep 2014, 18:12
I am using the example format expression to put 3D movies into a separate folder but I think I may be doing something wrong.
The format expressions is: {fn =~ /3D/ ? 'Movies - 3D' : 'Movies'}/{n} ({y}){fn =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{n} ({y}) ({vf}){fn =~ /3D/ ? ' H-SBS' : ''}{' CD'+pi}
It is working for any torrents with 3D and HSBS in the title but not ones with merely 3D. Am I using this wrong or is this a coincidence and I am doing something different wrong?
My full command:
filebot -script amc.groovy --output "V:" --log-file amc.log --action move --conflict override -non-strict --db TheMovieDB --def "movieFormat={fn =~ /3D/ ? 'Movies - 3D' : 'Movies'}/{n} ({y}){fn =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{n} ({y}) ({vf}){fn =~ /3D/ ? ' H-SBS' : ''}{' CD'+pi}" plex=localhost "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
The format expressions is: {fn =~ /3D/ ? 'Movies - 3D' : 'Movies'}/{n} ({y}){fn =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{n} ({y}) ({vf}){fn =~ /3D/ ? ' H-SBS' : ''}{' CD'+pi}
It is working for any torrents with 3D and HSBS in the title but not ones with merely 3D. Am I using this wrong or is this a coincidence and I am doing something different wrong?
My full command:
filebot -script amc.groovy --output "V:" --log-file amc.log --action move --conflict override -non-strict --db TheMovieDB --def "movieFormat={fn =~ /3D/ ? 'Movies - 3D' : 'Movies'}/{n} ({y}){fn =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{n} ({y}) ({vf}){fn =~ /3D/ ? ' H-SBS' : ''}{' CD'+pi}" plex=localhost "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"