Segrigating One Genre

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
karulio69
Posts: 5
Joined: 05 Mar 2014, 18:48

Segrigating One Genre

Post by karulio69 »

I have my setup into four different folders: Movies, TV Shows, Kids TV Shows, Kids Movies. I would like filebot to put only Kids and Family genres into the Kids Folders and allow everything else to go into the Movies and TV shows folders. I have found separate genres into genre specific folders on the forums, but I do not want to necessarily mention the genre in folders, I just want that to determine if its a kids movie or not. Can someone please help. I'm OK with java and scripting. This is also being run by utorrent.
User avatar
rednoah
The Source
Posts: 23939
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Segrigating One Genre

Post by rednoah »

Yes?

Code: Select all

{genres =~ /Kids|Family/ ? 'Kids Folder' : 'Everything Else Folder'}
:idea: Please read the FAQ and How to Request Help.
karulio69
Posts: 5
Joined: 05 Mar 2014, 18:48

Re: Segrigating One Genre

Post by karulio69 »

Thank you so much red noah, I've been playing with this for a couple of hours now, and I cannot figure out where to put the code. Can you help me get on the correct track. I guess I failed to mention that Movies, TV Shows, Kids TV Shows, Kids Movies are all separate folders in the same directory, I'll go ahead and leave the code so far. Please help.

filebot -script fn:amc --output "Q:\Library\Video\{genres =~ /Kids|Family/ ? 'Kids Movies|Kids TV Shows' : 'Movies|TV Shows'}" --log-file amc.log --action move --conflict override -non-strict --def music=n subtitles=en artwork=n clean=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" "seriesFormat=Q:/Library/Video/TV Shows/{n}/{'Season '+s}/ {n} - {sxe} - {t}" "movieFormat=Q:/Library/Video/Movies/{n} ({y})/ {n} ({y})"
User avatar
rednoah
The Source
Posts: 23939
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Segrigating One Genre

Post by rednoah »

Use the Format Editor in the GUI to experiment with the format. What's the issue? The snipped I gave you is pretty much copy and paste. Obviously this has to be part of the format. In your case --output is completely ignored since you specify absolute paths in the format anyway.

Code: Select all

Q:/Library/Video/{genres =~ /Kids|Family/ ? 'Kids Shows' : 'TV Shows'}/{n}/{'Season '+s}/ {n} - {sxe} - {t}
:idea: Please read the FAQ and How to Request Help.
Post Reply