Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Get rid of a directory when using content_rename?

$
0
0

@Antonio_Zetta wrote:

Hey guys,

I have an issue with using transmission and the content_rename plugin. Either it doesn't work properly or I don't understand how it works.

My problem is that when the torrent has a folder, in which the movie is placed, only the name of the video file is renamed. This results in the following path:

/mnt/media/movies/Movie Name (Year)/[original name of directory from the torrent]/Movie Name (Year).mkv

What I would like is to get rid of the directory name and have just the video file in a folder named by the plugin:

/mnt/media/movies/Movie Name (Year)/Movie Name (Year).mkv

Here is also my config:

templates:
  global:
    content_filter:
      require:
        - '*.mkv'
        - '*.avi'
        - '*.mpg'
        - '*.mp4'
      reject:
        - '*.wmv'
        - '*.r0'
        - '*.rar'
        - '*.part0'

  movies:
    quality: 1080i+ !h265
    movie_queue: accept
    regexp:
      from: title
      reject:
        - trailer
        - screener
        - subbed
        - dubbed
    set:
      path: /mnt/media/movies/{{movie_name}} ({{imdb_year}})
      content_filename: "{{movie_name}} ({{imdb_year}})"
      rename_like_files: Yes
      skip_files:
        - '*.nfo'
        - '*.sfv'
        - '*.txt'
        - '*.jpg'
        - '*[sS]ample*'
      include_subs: Yes
      magnetization_timeout: 30

    transmission:
      enabled: yes
      host: localhost
      port: 9091
      username: admin
      password: iasanb1102yeah

    pushbullet:
      apikey: N7fP95bWjYAHSBqlDvPhs8HnPH2uas5f
      title: "{{movie_name}} {{movie_year}} {{quality}} - Download started"
      body: "IMDB Rating: {{imdb_score}}\n{{imdb_plot_outline}}\n{{imdb_url}}"

  tv:
    private_torrents: no
    configure_series:
      settings:
        exact: yes
        propers: 3 days
        quality: 720p+ !h265
      from:
        trakt_list:
          username: mandadzhiev
          account: mandadzhiev
          list: My TV Shows
          type: shows
    thetvdb_lookup: Yes
    set:
      path: /mnt/media/series/{{ tvdb_series_name }}/Season {{ tvdb_season|pad(2) }}
      content_filename: "{{ tvdb_series_name }}/S{{ tvdb_season|pad(2) }}E{{ tvdb_episode|pad(2) }} - {{ tvdb_ep_name|default('Missing title') }}"
      mail_file_only: Yes
      skip_files:
        - '*.nfo'
        - '*.sfv'
        - '*.txt'
        - '*.jpg'
        - '*[sS]ample*'
      include_subs: No
      magnetization_timeout: 30

    transmission:
      enabled: yes
      host: localhost
      port: 9091
      username: admin
      password: iasanb1102yeah

    pushbullet:
      apikey: N7fP95bWjYAHSBqlDvPhs8HnPH2uas5f
      title: "{{series_name}} - Download started"
      body: "{{series_name}} {{series_id}} {{quality}}"

tasks:
  # This task will look for episodes you have added to your `My TV Shows` list at trakt.
  # It will set the `begin` series option for that show, then remove the episode and re-add it to your `My TV Shows` list as a show.
  set_up_series_begin_with:
    priority: 1  
    verify_ssl_certificates: no
    seen: local
    trakt_list:
      account: mandadzhiev
      list: My TV Shows
      type: episodes
    accept_all: yes
    set_series_begin: yes
    trakt_remove:
      account: mandadzhiev
      list: My TV Shows
    trakt_add:
      account: mandadzhiev
      list: My TV Shows
      type: shows

  queue_movies_from_trakt:
    priority: 2
    verify_ssl_certificates: no
    trakt_list:
      username: mandadzhiev
      list: watchlist
      type: movies
    accept_all: yes
    movie_queue: add

  download_shows:
    priority: 3
    template: tv
    discover:
      what:
        - emit_series: yes
      from:
        - torrentz: verified
        - kat:
            category: tv
            verified: yes
        - rarbg:
            category:
              - x264 1080p
              - x264 720p
      interval: 5 minutes
    torrent_alive: 1 # Will reject results with less than 1 seeds

  extratorrent.com-tv:
    priority: 4
    rss: http://extratorrent.com/rss.xml?cid=8
    verify_ssl_certificates: no
    template: tv

  showrss.info-tv:
    priority: 5
    rss: http://showrss.info/feeds/all.rss
    template: tv

  # task that automatically generates an rss feed based on entries from the movie_queue
  download_movies:
    priority: 6
    template: movies
    verify_ssl_certificates: no
    discover:
      what:
        - emit_movie_queue: yes
      from:
        - kat:
            category: movies
            verified: yes
        - rarbg:
            category:
              - x264 720p
              - x264 1080p
        - piratebay:
            category: movies
            sort_by: seeds
        - torrentz: verified
      interval: 5 minutes
    torrent_alive: 1 # Will reject results with less than 10 seeds

  cleanup:
    clean_transmission:
      host: localhost
      port: 9091
      username: admin
      password: iasanb1102yeah
      finished_for: 2 hours
      min_ratio: 0

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles