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

Article replacements

$
0
0

@wondernode wrote:

Hello,

Apologies if this question has been answered before, I've had a search however couldn't find anything.

I've looked through the Jinja replace page however this seems to cover in place replacements instead of shifting text around.
I want to move common articles in titles (The, A, An, etc) to after my name:

For example:
The Killing of a Sacred Deer (2017) > Killing of a Sacred Deer, The (2017)

My relevant move tasks are:

  sort-movies:
    filesystem:
      path: /input/
      regexp: '.*\.(mkv|mp4)$'
      recursive: yes
    accept_all: yes
    pathscrub: windows
    tmdb_lookup: yes
    regexp:
      reject:
        - sample
    if:
      - tmdb_name == None: reject
    copy:
      to: "/output/videos/movies/{{tmdb_name|pathscrub}} ({{tmdb_year}})"
      rename: "{{tmdb_name|pathscrub}}"
#      clean_source: 10
      along:
        extensions:
          - srt
          - sub
          - nfo

  sort-shows:
    filesystem:
      path: /input/
      regexp: '.*\.(mkv|mp4|srt)$'
      recursive: yes
    accept_all: yes
    pathscrub: windows
    regexp:
      reject:
        - sample
    metainfo_series: yes
    thetvdb_lookup: yes
    if:
      - tvdb_series_name == None: reject
    copy:
      to: "/output/videos/television/{{tvdb_series_name|pathscrub}}"
      rename: "{{ tvdb_season }}x{{ tvdb_episode | pad(2) }} {{ tvdb_ep_name | pathscrub }}"
#      clean_source: 10
      along:
        extensions:
          - srt
          - sub

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles