Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

How would I conditionally set a "move-to" location using regex matching?

$
0
0

@bfqrst wrote:

Hey guys,

I'm a bit lost trying to conditionally set a move-to location. I outlined below what I was aiming for in semi pseudo FlexGet syntax...

move:
      filename: '{{ filename }}' 
      if:
        - filename matches tvshow-regex ((.*)(\s-\sS\d\dE\d\d\s-\s)(.*)(\.mkv|\.avi|\.mp4)):
          set:
            to: /tmp/shows
        - filename matches movies-regex((.*)(\s\([12][09]\d\d\))(\.mkv|\.avi\.mp4)):
           set:
             to: /tmp/flicks

Thanks in advance.
Cheers

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles