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

How to change the title of a series from Trakt

$
0
0

@christophe_cluzel wrote:

Hi,

I would like to rename the series name from my watch list in Trakt to show : Series_name SXXEXX

I succedeed to rename to show Series_name by doing :

    set:
      title: "{{tvdb_series_name|escape|replace(''', '')}}"

But I have no success adding the Season number and the episode number. I am quite sure it is dead simple but cannot find the right solution.

Thanks

Here is my complete setup file :

variables: secrets.yml
schedules:
  - tasks: ['populate-*', 'clean-*']
    schedule:
      hour: 0
  - tasks: ['fill-*', '*-rss']
    schedule:
      minute: 0,30
templates:
  series:
    thetvdb_lookup: yes
    tvmaze_lookup: yes
    configure_series:
      from:
        entry_list: trakt-series
      settings:
        identified_by: ep
        timeframe: 16 hours
        quality: webrip|webdl
        propers: 16 hours
        specials: no
        #proper: no
    content_size:
      min: 350
  transmission-anchors:
    _transmission-settings: &transmission-settings
      host: "{? transmission.host ?}"
      port: 9091
      username: "{? transmission.user ?}"
      password: "{? transmission.pass ?}"
  reject:
    regexp:
      reject:
        - \b(s|d)ub(s|bed|lado|titulado)?\b
        - \bhc\b
        - \bdual\b
        - \b3d\b
        - \bfre(nch)?\b
        - \bita(lian)?\b
        - \bspa(nish)?\b
        - \bger(man)?\b
        - \bcastellano\b
        - \brus(sian)?\b
    content_filter:
      reject:
        - '*.rar'
        - '*.zip'
  transmission-series:
    transmission:
      <<: *transmission-settings
      main_file_only: yes
      include_subs: yes
      rename_like_files: yes
      content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}"
      path: "/{? folder.root ?}{? folder.downseries ?}{{tvdb_series_name|default(series_name)|pathscrub}}/"
  series-metainfo:
    metainfo_series: yes
    thetvdb_lookup: yes
  torrents:
    torrent_alive:
      min_seeds: 3
      reject_for: 15 minutes
    magnets: no

    domain_delay:
      thepiratebay.se: 10 seconds
      thepiratebay.org: 10 seconds
      nyaa.se: 3 seconds
      extratorrent: 3 seconds
      limetorrents: 3 seconds
tasks:
  populate-series-db:
    priority: 1
    template:
      - series-metainfo
    seen: local
    filesystem:
      path: "/{? folder.root ?}{? folder.series ?}"
      recursive: yes
      retrieve: files
      regexp: '.*\.(avi|mkv|mp4)$'
    accept_all: yes
    configure_series:
      from:
        filesystem:
          path: "/{? folder.root ?}{? folder.series ?}"
          retrieve: dirs
      settings:
        tracking: no
  fill-series-list:
    priority: 2
    template:
      - series-metainfo
    list_clear:
      what:
        - entry_list: trakt-series
    trakt_list:
      username: "{? trakt.account ?}"
      list: "{? trakt.series ?}"
      type: shows
    accept_all: yes
    set:
      title: "{{tvdb_series_name|escape|replace('&#39;', '')}}"
    list_add:
      - entry_list: trakt-series
  download-series-rss:
    priority: 5
    template:
      - series
      - reject
      - torrents
      - transmission-series
    inputs:
      - rss: https://eztv.ag/ezrss.xml
      - rss: https://extratorrent.cc/rss.xml?cid=8&type=new
      - rss: https://www.limetorrents.cc/rss/20/
  clean-transmission:
    priority: 47
    disable: details
    clean_transmission:
      <<: *transmission-settings
      finished_for: 1 day

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles