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

Duplicate year in series title

$
0
0

@Henrik_Sjodahl wrote:

So, i've a config with Trakt that downloads series from a trakt list with discover plugin.
It has been working great most of the time, but i have one series that don't work at all.
The series is named "Heartland (2007) (CA)" in trakt (because there is another series from 2007 named Heartland from the US. This makes my list-entry being named "Heartland (2007) (CA) (2007)" and thats a problem, because the discovery plugin do not find anything on that search.

What i need to do to get this to work is remove "(2007)" from the actual series name so that my list-entry is "Heartland (CA) (2007)", but i don't know how to do that and need some help.

templates:
  global:
    domain_delay:
      # RSS
      bt-chat.com: 1 seconds
      ezrss.it: 1 seconds
      showrss.info: 1 seconds
      torlock.eu: 1 seconds
      torrenticity.com: 1 seconds
      torrentz.me: 1 seconds
      kickasstorrents.eu: 1 seconds

      # Discover
      kat.ch: 5 seconds
      torrentz.eu: 5 seconds
      rarbg.to: 5 seconds
      torcache.net: 5 seconds

    urlrewrite: 
      torcache-https:
        regexp: 'https:\/\/torcache\.net\/torrent\/(?P<id>.*)\.torrent\?title=(?P<title>.*)'
        format: 'https://torcache.net/torrent/\g<id>.torrent' 

      torcache-http:
        regexp: 'http:\/\/torcache\.net\/torrent\/(?P<id>.*)\.torrent\?title=(?P<title>.*)'
        format: 'http://torcache.net/torrent/\g<id>.torrent' 

    headers:
      User-Agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
      Referer: "http://torcache.net/"
      Accept-Encoding: "deflate, gzip"

    verify_ssl_certificates: no

    regexp:
      reject:
        - (s|d)ub(s|bed)?\b: {from: title}
        - (duo|tri|quadri|tetra|penta|hexa|hepta|octa|ennea|deca)logy 
        - \b3-?D\b: {from: title}
        - \bR5\b: {from: title}
        - \bWEBSCR\b: {from: title}
        - \bscreener\b: {from: title}
        - \bTS\b: {from: title}
        - \bCam\b: {from: title}
        - "{C_P}": {from: title}
        - \bFRENCH\b: {from: title}
        - \bSPANiSH\b: {from: title}
        - \btrailer\b: {from: title}
        - \bSCR\b: {from: title}
        - TrTd TeaM: {from: title}
        - \[TNTVillage\]: {from: title}
        - \[facepalm\]: {from: title}
        - \bHEVC\b: {from: title}
    content_filter:
      require:
        - '*.avi'
        - '*.mkv'
        - '*.m4v'
        - '*.mp4'
      reject:
        - '*.m2ts'
        - 'password.txt'
        - '*.wmv'
    retry_failed:
      retry_time: 1 hour
      retry_time_multiplier: 2
      max_retries: 3

  Series-Global:
    exists_series:
      - '{{ secrets.path.targetSeries }}'
      - '{{ secrets.path.downloadSeries }}'

    # Some titles need little corrections to find matches on metainfo sites.
    manipulate:
      - title:
          replace:
            regexp: '^\[[^\]]*\][^a-z0-9]*'
            format: ''
      - title:
          replace:
            regexp: '^{[^\]]*}[^a-z0-9]*'
            format: ''
      - title:
          replace:
            regexp: '^\([^\]]*\)[^a-z0-9]*'
            format: ''
      # Original title backup
      - tvinfo_title:
          from: title
      # Now the modifications
      - title:
          replace:
            regexp: '.*(marvel|marvels|marvel.s)?.agents.of.(s.h.i.e.l.d.|shield)[\b-.]*'
            format: 'marvels_agents_of_shield.'
      - title:
          replace:
            regexp: '^[^a-z0-9]*heartland.(ca|\(ca\))?[^a-z0-9]*'
            format: 'Heartland.(CA).'

    transmission:
      host: 192.168.1.2
      port: 9091
      username: '{{ secrets.transmission.username }}'
      password: '{{ secrets.transmission.password }}'
      magnetization_timeout: 30
      main_file_only: yes
      include_subs: yes
      skip_files:
        - '*.[sS]ample'
    thetvdb_lookup: yes
    set:
      content_filename: "{{ tvdb_series_name|default(series_name)|replace('/', '_')|replace(':', ' -')|replace(',', '') }} - {{ series_id }}{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name|replace('/', '_')|replace(':', ' -')|replace(',', '') }}{% endif %}"
      path: '{{ secrets.path.downloadSeries }}'
    pushbullet:
      apikey: '{{ secrets.pushbullet.APIkey }}'
      title: "[FlexGet] {{ series_name }}"
      body: "{{task}} - {{ series_id }}\nFile: {{title}}"

  Series-Discover:
    discover:
      limit: 10 
      what:
        - next_series_episodes: yes
      from:
        - rarbg:
            category: [18,41]
            sorted_by: seeders
            limit: 25
            use_tvdb: true
        - piratebay:
            category: video

tasks:
  Series-GetFollowing:
    priority: 5
    template:
      - Series-Global
      - Series-Discover
    configure_series:
      from:
        trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: 'TV Following'
          type: shows
      settings:
        target: 720p hdtv+
        timeframe: 4 hours
        quality: 480p-720p webrip+
        propers: 24 hours

I think thats all in my config that is of use. I really hope someone has an answer to this. Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles