Page 1 of 1

Move file depending on file name

Posted: 03 Oct 2016, 15:15
by Daniel3032
This is what i use now

Code: Select all

G:/Videoer/Movies/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}]/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}] {' CD'+pi}{'.'+lang}
I would like to have filebot move any file with the name ''Joy'' in it to G:/Videoer/Movies/1 A -JoyBell
is this possible?

Re: Move file depending on file name

Posted: 03 Oct 2016, 18:07
by rednoah
if-then-else

Code: Select all

fn =~ /Joy/ ? '/path/to/Joy' : '/path/to/NoJoy'
@see viewtopic.php?f=5&t=4191

Re: Move file depending on file name

Posted: 03 Oct 2016, 22:51
by Daniel3032
Thank you, that worked :) i changed it to

Code: Select all

{fn =~ /Joy/ ? 'G:/Videoer/Movies/1 A -JoyBell/' : 'G:/Videoer/Movies/'}{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}]/{n} {'('+y+')'} {'['+vf+']'} {[channels]} [{vc} {bitdepth}bit {fn.match (/Joy/)}] {' CD'+pi}{'.'+lang}