split shows between two hard drives

All about user-defined episode / movie format expressions
Post Reply
Jephuff
Posts: 3
Joined: 20 Jul 2013, 17:05

split shows between two hard drives

Post by Jephuff » 20 Jul 2013, 17:13

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

User avatar
rednoah
The Source
Posts: 16812
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: split shows between two hard drives

Post by rednoah » 20 Jul 2013, 17:31

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. ;)
:idea: Please read the FAQ and How to Request Help.

Jephuff
Posts: 3
Joined: 20 Jul 2013, 17:05

Re: split shows between two hard drives

Post by Jephuff » 20 Jul 2013, 17:47

my god, that is 100 times better haha that way I can easily expand to more harddrive, thank you very much!

Jephuff
Posts: 3
Joined: 20 Jul 2013, 17:05

Re: split shows between two hard drives

Post by Jephuff » 20 Jul 2013, 23:25

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

User avatar
rednoah
The Source
Posts: 16812
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: split shows between two hard drives

Post by rednoah » 21 Jul 2013, 04:48

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}
:idea: Please read the FAQ and How to Request Help.

Post Reply