Per TV Series Destination

All about user-defined episode / movie / file name format expressions
Post Reply
blurb2m
Donor
Posts: 3
Joined: 06 Mar 2016, 09:34

Per TV Series Destination

Post by blurb2m »

I apologize in advance if this ? exists but I have been hard pressed to find it.
- I am using the command line execution upon a file being completed.

filebot.launcher.exe -script fn:amc --output "E:/media" --action copy --conflict skip -non-strict --log-file amc.log --def "seriesFormat=T:/{n}/Season {s.pad(2)}/{n} - {S00E00} - {t}" --def unsorted=y music=n artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" --def ignore=UFC --def minFileSize=0

I am hoping it is possible to set different destination locations pending on what show is being renamed.
- Paw Patrol and Mickey Mouse Clubhouse
- Would like those to go into a separate network drive (i.e. K:/) <- Kids TV

Additional questions while I have the attention of much smarter people!:
- Can I ensure (US) is pulled off of some shows so it doesn't create a new directory? (i.e. "House of Cards (US)" )
- Am I using the def ignore correctly to ignore any media with UFC in the title?
- Will minFileSize=0 ignore small 5kb srt files that are in the directory?

Thanks in advance!
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Per TV Series Destination

Post by rednoah »

1.
Would like those to go into a separate network drive (i.e. K:/) <- Kids TV
Sure, the output path is defined by your format, which can contain arbitrary logic. Other conditions probably make more sense (e.g. genre equals animation) though.

e.g.

Code: Select all

{n =~ 'Mickey Mouse' ? 'K' : 'X'}:/Media/{n}/{n} - {s00e00} - {t}
@see viewtopic.php?f=5&t=2


2.
Can I ensure (US) is pulled off of some shows so it doesn't create a new directory? (i.e. "House of Cards (US)" )
That one is in the examples. ;)

Code: Select all

{n.replaceTrailingBrackets()}
@see http://www.filebot.net/naming.html


3.
--def ignore=UFC will make sure that any file that contains "UFC" (case-insensitive) anywhere in the file path. Just give it a try. ;)


4.
--def minFileSize=0 disables the minimum file size limit. You want --def minFileSize=5000 if you want to exclude files that are smaller than 5k bytes. Just give it a try. ;)
:idea: Please read the FAQ and How to Request Help.
blurb2m
Donor
Posts: 3
Joined: 06 Mar 2016, 09:34

Re: Per TV Series Destination

Post by blurb2m »

Thanks for your help!
Donated!
blurb2m
Donor
Posts: 3
Joined: 06 Mar 2016, 09:34

Re: Per TV Series Destination

Post by blurb2m »

Red,
I seem to have messed up some of the logic...
I think my 'OR' (||) is in the wrong place.
U if Mickey or Paw found, T otherwise.
Everything is going into T at this point, when I switched T and U places, every show went to U.
Do I need to do:
{n =~ 'Mickey' ? 'U' : 'T'} || {n =~ 'Paw' ? 'U' : 'T'}

Current command line:
filebot.launcher.exe -script fn:amc --output "E:/media" --action copy --conflict skip -non-strict --log-file amc.log --def "seriesFormat={n =~ 'Mickey' || 'Paw' ? 'T' : 'U'}:/{n.replaceTrailingBrackets()}/Season {s.pad(2)}/{n} - {S00E00} - {t}" --def unsorted=y music=n artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" --def ignore=UFC --def minFileSize=500000
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Per TV Series Destination

Post by rednoah »

I'd do a Regex Or:

Code: Select all

{n =~ /Mickey|Paw/ ? 'U' : 'T'}
:idea: Please read the FAQ and How to Request Help.
Post Reply