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

Hi. Posting my first Flexget Config

$
0
0

@Arghh wrote:

Hi all,

loving Flexget so far. Ty for the hard work devs! :clap:
I have been using flexget for a few months now and would like to share my config. It is working quite good, except the notify email does not get sent always, but it's not a big deal. Maybe someone has some ideas on how to making it more efficient? I have a lot of repeating lines in tasks etc.

What does the config do? It downloads series and movies from public torrenttrackers (rarbg, piratebay) and moves, renames them after downloading. Keeping the torrents in Deluge alive for seeding (deleting them manually after some time.)

tasks:
  # downloading task
  download-series:
    priority: 1
    rss:
      url: YOUR SHOWRSS.INFO URL
      link:
        - link
        - magneturl
    # fetch all the feed series
    all_series:
      timeframe: 4 hours
      target: 720p hdtv
      quality: 360p-720p sdtv-webdl divx-h265
      set:
        label: series
    exists_series:
      path:
        - /PATHTOTORRENTS/torrents/downloading
        - /PATHTOTORRENTS/torrents/completed
        - /PATHTOTORRENTS/series/
    # use deluge to download the torrents
    deluge: yes
    list_add:
      - entry_list: series_list
    notify:
      task:
        template: html  # Optional, if you want html instead of plain text
        via:
          - email:
              from: YOURTEMPACCOUNT@gmail.com
              to: YOURREALACCOUNT@gmail.com
              smtp_host: smtp.gmail.com
              smtp_port: 587
              smtp_username: YOURTEMPACCOUNT@gmail.com
              smtp_password: somepassforthetempaccount
              smtp_tls: yes
              html: yes # To parse template as HTML
  # sorting task
  sort-series:
    priority: 3
    filesystem:
      # directory with the files to be sorted
      path: /PATHTOTORRENTS/torrents/completed
      # fetch all avi, mkv and mp4 files, skips the .part files (unfinished torrents)
      regexp: '.*\.(avi|mkv|mp4|m4v|)$'
      recursive: yes
    accept_all: yes
    seen: local
    regexp:
      reject:
        - sample
    # this is needed for the episode names
    list_match:
      from:
        - entry_list: series_list
    thetvdb_lookup: yes
    metainfo_series: yes
    require_field:
      - tvdb_series_name
      - tvdb_ep_id
      - tvdb_ep_name
    parsing:
      series: guessit
    disable:
      - seen
      - seen_info_hash
      - rejected
    move:
      # this is where the series will be put
      to: /PATHTOTORRENTS/series/{{ tvdb_series_name }}/Season {{tvdb_season|pad(2)}}
      # save the file as "Series Name - SxxEyy - Episode Name.ext"
      rename: "{{ tvdb_series_name }} - {{ tvdb_ep_id|d(series_id, True) }} - {{ tvdb_ep_name|d(series_name, True) }}"
      along:
        extensions:
          - sub
          - srt
        subdirs:
          - Subs


  # add movies from trakt
  find-movies:
    priority: 2
    trakt_list:
      username: TRAKTUSERNAME
      account: TRAKTUSERNAME
      list: watchlist
      type: movies
    accept_all: yes
    seen: local
    list_add:
      - movie_list: watchlist

  #download movies
  download-movies:
    priority: 4
    imdb_lookup: yes  # can also use imdb_lookup or tmdb_lookup
    discover:
      what:
        - movie_list: watchlist
      from:
        - rarbg:
            category:
              - x264 720p
              - x264 1080p
            sorted_by: seeders
      from:
        - piratebay:
            category: video
            sort_by: seeds
      interval: 1 hour
    set:
      label: movies
    exists_movie:
      path:
        - /PATHTOTORRENTS/torrents/downloading
        - /PATHTOTORRENTS/torrents/completed
        - /mPATHTOTORRENTS/movies/
    torrent_alive: 4 # Will reject results with less than 10 seeds
    list_match:
      from:
        - movie_list: watchlist
    regexp:
      from: title
      reject:
        - msd
        - afg
        - line
        - hc
        - korsub
    # use deluge to download the torrents
    deluge: yes
    notify:
      task:
        template: html  # Optional, if you want html instead of plain text
        via:
          - email:
              from: YOURTEMPACCOUNT@gmail.com
              to: YOURREALACCOUNT@gmail.com
              smtp_host: smtp.gmail.com
              smtp_port: 587
              smtp_username: YOURTEMPACCOUNT@gmail.com
              smtp_password: somepassforthetempaccount
              smtp_tls: yes
              html: yes # To parse template as HTML

    # sorting task
  sort-movies:
    priority: 5
    filesystem:
      # directory with the files to be sorted
      path: /PATHTOTORRENTS/torrents/completed
      # fetch all avi, mkv and mp4 files, skips the .part files (unfinished torrents)
      regexp: '.*\.(avi|mkv|mp4|)$'
      recursive: yes
    seen: local
    seen_movies: strict
    if:
      - series_name : reject
    # this is needed for the episode names
    imdb_lookup: yes
    list_match:
      from:
        - movie_list: watchlist
      single_match: no
    accept_all: yes
    parsing:
      movie: guessit
    exists_movie:
      path:
        - /PATHTOTORRENTS/movies/
    require_field:
      - imdb_name
      - imdb_year
    move:
    # this is where the series will be put
      to: /PATHTOTORRENTS/movies/{{ imdb_name }} ({{ imdb_year }})
      along:
        extensions:
          - sub
          - srt
          - idx

schedules:
  # Run every task once an hour
  - tasks: download-series
    interval:
      minutes: 30
  - tasks: find-movies
    interval:
      minutes: 45
  - tasks: download-movies
    interval:
      hours: 1
  - tasks: sort-series
    interval:
      hours: 2
  - tasks: sort-movies
    interval:
      hours: 4

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles