Page 1 of 1

split shows between two hard drives

Posted: 20 Jul 2013, 17:13
by Jephuff
Hi,
I have 2 3TB drives and about 4TB of shows. currently what I have been doing is just renaming and moving shows to the first harddrive with filebot, and when it is filled I move a couple of shows over to the second one.
what i'm wondering is if it's possible to make filebot actually do this for me. so what i would want is something like anything [0-9] and [a-m] would go to the first harddrive and [n-z] would go to the second one.
I was hoping I could use some sort of if statement but I can't seem to find much information on the syntax... maybe i'm just not looking in the right spot.

any help would be greatly appreciated!

thank you,
J

Re: split shows between two hard drives

Posted: 20 Jul 2013, 17:31
by rednoah
What you say is entirely possible. Just have the format evaluate to different drives based on {n}. The full path is completely controlled by the format.

Though is this not a better approach?
http://www.filebot.net/forums/viewtopic ... &t=2#p3131

Also you can just copy and paste it from there. ;)

Re: split shows between two hard drives

Posted: 20 Jul 2013, 17:47
by Jephuff
my god, that is 100 times better haha that way I can easily expand to more harddrive, thank you very much!

Re: split shows between two hard drives

Posted: 20 Jul 2013, 23:25
by Jephuff
I realized that I may want to still split them by letter, but I am still having one heck of a time...
what I have been trying is using this:
{if(condition){'G'}else{'J'}}:\Shows\{n.lower()}season {s}\{n.lower()} {s00e00.lower()} - {t.lower()} [{source} {group}]
with different things in condition. i'm hoping that syntax is correct...
how would I make that comparison? i'm assuming it's not as simple as n < 'm' (mainly cause it doesn't work... but that could be my problem.
again, any help would be greatly appreciated :) I should probably be able to figure this out... but I can't...


Thank you,
J

Re: split shows between two hard drives

Posted: 21 Jul 2013, 04:48
by rednoah
I'd write it like this:

Code: Select all

{n[0].match((~/(?i)[0-9a-m]/):'X') ?: 'Y'}
Drive X if first letter of {n} matches [0-9a-m] (case-insensitive) or Drive Y for everything else. ;)

e.g.

Code: Select all

{n[0].match((~/(?i)[0-9a-m]/):'X') ?: 'Y'}:/TV Shows/{n}/{"Season $s"}/{n} - {s00e00} - {t}