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

Config with external series list

$
0
0

@Bop4yN wrote:

Hi everyone.

May be someone can help me to modify my config.
Here is my config based on if plugin.

schedules:
...
templates:
...
tasks:
  BaibaKo:
    template:
      - baibakorss
      - baibakonotify
    if:
      - "'s01e01' in title":
          regexp:
            accept:
              - XviD
          set:
            path: /mnt/Video/01 Serials/Premiere/{{ title }}
      - "'XviD' in title":
          regexp:
            accept:
              - Series Name 1
              - Series Name 2
              - Series Name 3
            from: title
          set:
            path: /mnt/Video/01 Serials/{{ title }}
    transmission: yes


  LostFilm:
    template:
      - lostfilmrss
      - lostfilmnotify
    if:
      - "'). (S01E01)' in title":
          accept_all: yes
          set:
            path: /mnt/Video/01 Serials/Premiere/{{ title }}
      - "'Season) [MP4]. (S' in title":
          regexp:
            accept:
              - Series Name 1
              - Series Name 2
              - Series Name 3
            from: title
          set:
            path: /mnt/Video/01 Serials/{{ title }}
      - "'Season). (S' in title":
          regexp:
            accept:
              - Series Name 1
              - Series Name 2
              - Series Name 3
            from: title
          set:
            path: /mnt/Video/01 Serials/{{ title }}
    transmission: yes

It works great. Exactly as I need.

But what I want now is put all my "Series Names" into external file/files. I don't want to modify my config any time I need to add new series.

I was trying to use Include plugin inside my accept: and inside regexp:.
But
Failed to load config file: Did not pass schema validation.

And no luck with Filesystem plugin.
I put The Walking Dead.watchlist file into /mnt/Video/01 Serials/01_WatchList/BaibaKo/ and modify my config

  BaibaKo:
    template:
      - baibakorss
      - baibakonotify
    if:
      - "'s01e01' in title":
          regexp:
            accept:
              - XviD
          set:
            path: /mnt/Video/01 Serials/Premiere/{{ title }}
      - "'XviD' in title":
          filesystem:
            path:
              - "/mnt/Video/01 Serials/01_WatchList/BaibaKo/"
            mask: '*.watchlist'
          set:
            path: /mnt/Video/01 Serials/{{ title }}
    transmission: yes

But nothing is accepted.
If I'll add accept_all: yes

      - "'XviD' in title":
          filesystem:
            path:
              - "/mnt/Video/01 Serials/01_WatchList/BaibaKo/"
            mask: '*.watchlist'
          accept_all: yes
          set:
            path: /mnt/Video/01 Serials/{{ title }}

Then everything with XviD will be accepted.
It seems that it's not allowed to use filesystem: like that.


Please help me to modify my config.
Can I use filesystem for that? May be I configured it incorrectly?
Is there some other plugins to make external series list?

Thank you for reading it.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles