Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

If-statement - using all()

$
0
0

@beisat wrote:

Hi

I feel like this should be easy, but I'm not getting there-.-
I want to filter the title of a RSS feed for contraining certain release groups (excluding all others). If any one of these release groups are found, then I want to check if the title matched my wanted movie.

Example:
RSS contains
- Movie A by Release Group 4
- Movie A by Release Group 1
- Movie B by Release Group 1
- Movie C by Release Group 2

Suggested config.yml

web_server: yes

schedules:
  - tasks: '*'
    interval:
      minutes: 30
tasks:
  movies task:
    rss: 
      url: http://blabla
      all_entries: no
    if:
      - "any(title in ['group1', 'group2', 'group3'])":
          regexp:
            accept:
              - MovieA
	      - MovieC
              - MovieD
    download: /downloads

It should grab:
- Movie A by Release Group 1
- Movie C by Release Group 2

Any help how to achieve this is greatly appreciated - I'm happy for any solutions, can be regex or if-statement.
Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles