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

RSS Plugin Can't Parse Link From Media RSS Feed

$
0
0

@William_Lehr wrote:

I'm relatively new to Flexget and I've been trying to parse a Media RSS feed for its video URLs. The MRSS is formatted as:

<media:content medium="video" url="example.com/media"></media:content>

My task is set up as:

task:
  rss:
    url: http://example.com/rss.xml
    link: media:content
  accept_all: yes  
  download:
    path: /path/to/file
    filename: '{{title}}.mp4'

Flexget returns an error of:

Tried to set None url to [{'url': u'http://example.com/media', 'medium': u'video'}]
Aborting task (plugin: rss)

If I save the XML locally and modify to , everything works.

Is there a way to format the link: config to read only the URL for media:content?

Posts: 1

Participants: 1

Read full topic


Writing a custom series regexp:

$
0
0

@b1hmpw96 wrote:

I'm trying to write a custom regexp to handle a show that gives me difficulties using the usual 'series' plugin' and have content_filename change the file name before passing it to Deluge.
I have done quite a bit of Googling and there isn't too much information out there for this sort of thing in one place.

Let's say the show comes in this sort of format for my example.

Difficult.Show.2016.11.16.Part.2.mp4

Sometimes it comes in parts, sometimes not. It's the 'parts' that causes problems with the regular series plugin because it will see that it's downloaded the first part, for instance, and not download the second part because it's 'been seen' because the dates are the same.

Here's what I've come up with thus far.

tasks:
  custom:
    regexp:
      accept:
        - '(^Difficult.Show).*':
            set:
              series_name: "{{title|re_replace('(^Difficult.Show)(.*)', '\ \1')}}"
              series_date: "{{title|re_replace('(.*)(\\d{4}.\\d{2}.\\d{2})(.*)', '\\2')}}"
              series_episode: "{{title|re_replace('(.*)([Pp]a?rt.?\\d)(.*)', '\\2')}}"
              content_filename: "{{series_name}}-{{series_date}}-{{series_episode}}" 

    deluge: yes

It does not pass the referenced group to the file name, but the reference itself. ie. \ \1,\ \2. It looks like a wingding character. 00 over 01 or 02 in a square box.
- there is no space between the \ \1 reference in the code line 'series_name'. This page handles it oddly.

Any ideas?
Thanks.

  • running v2.5.16

Posts: 1

Participants: 1

Read full topic

Freelance Job

$
0
0

@byzon wrote:

Hello I have a budged of 50$ and I wish to create a config file for 5 torrent forums(trackers). I need the .torrent files stored in folder.
Is this is possible, do someone can write me one config.yml for this price ?

Thanks!

Posts: 2

Participants: 2

Read full topic

Delete not working

$
0
0

@xtra-be wrote:

hi
i have following config file:

tasks:
  delete-series:
    filesystem:
      path: '/downloads/series/'
      recursive: yes
    age:
      field: created
      action: accept
      age: 4 weeks
    delete:
      clean_source: 1

when i run the task
i get following output:
flexget -c delete.yml execute
2016-11-10 08:40 VERBOSE task_queue There are 0 tasks to execute. Shutdown will commence when they have completed.
2016-11-10 08:40 VERBOSE filesystem delete-series Starting to scan folders.
2016-11-10 08:40 VERBOSE filesystem delete-series Scanning folder /downloads/series/. Recursion is set to True.
2016-11-10 08:40 VERBOSE details delete-series Produced 347 entries.

2016-11-10 08:41 VERBOSE details delete-series Summary - Accepted: 228 (Rejected: 0 Undecided: 119 Failed: 0)

but actualy nothing get's deleted
what am i missing?

Posts: 2

Participants: 1

Read full topic

Multi-language titles from TVDB

$
0
0

@Emanuele_Sacchi wrote:

I've successfully set up different tasks for downloading episodes in different languages, and it works fine, but I'm having a problem with TVDB.

I use
thetvdb_lookup: yes
and auto-rename the episodes with
content_filename: "{{tvdb_series_name}} {{tvdb_season}}x{{tvdb_episode|pad(2)}} - {{tvdb_ep_name}}"

It works perfectly for English titles, but for episodes in other languages it can only grab titles in English, so for those I've set up a content-filename statement without the episode title, and then I rename the episodes manually, but of couse it's not an optimal solution.

Is it possible (or would it be possible to add something) to specify a language to be used by the TVDB plugin for a particular task/group?

Posts: 4

Participants: 2

Read full topic

Can't move downloaded file

$
0
0

@Ross_Barber wrote:

I've been trying to get Flexget up and running with OSMC for a few weeks now, it almost works but I keep falling at the final hurdle, I cannot get the finished downloaded file to move to the correct location. I keep getting the error
'Rejected by series plugin because episode has already been downloaded'

I've used the installer supplied at https://github.com/alombarte/raspberry-osmc-automated which comes with the following script

    tasks:      
      # downloading task        
      download-rss:     
        # RSS where everything is downloaded from:    
        rss: CONFIG_RSS_FEED
        # fetch all the feed series
        all_series: yes
        # use transmission to download the torrents
        transmission:
          host: localhost
          port: 9091
          username: transmission
          password: transmission
          path: /home/osmc/Downloads
        # Remove completed downloads from Transmission
        clean_transmission:
          host: localhost
          port: 9091
          username: transmission
          password: transmission
          finished_for: 1 hours
      # sorting task
      sort-files:
        filesystem:
          # directory with the files to be sorted
          path: /home/osmc/Downloads/
          # fetch all avi, mkv and mp4 files, skips the .part files (unfinished torrents)
          regexp: '.*\.(avi|mkv|mp4)$'
          recursive: yes
        accept_all: yes
        disable:
          - seen
          - retry_failed
        # this is needed for the episode names
        thetvdb_lookup: yes
        all_series:
          # for some reason all_series rejects all episodes here, even with seen: local, so parse_only must be added
          parse_only: yes
        # TVDB doesn't recognise "Adventure Time with Finn and Jake" so you must add such exceptions here manually
        series:
          - Adventure Time
        move:
          # this is where the series will be put.
          to: /home/osmc/TV Shows/{{ tvdb_series_name }}
          # Set the filename E.g: "Series Name - S01E02 - Episode Name.mkv"
          filename: "{{ tvdb_series_name }} - {{ series_id|default('XX') }} {% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name }}{% endif %}{{ location|pathext }}"
        # Download subtitles of the Series in your chosen language:
        exec: /usr/local/bin/subliminal download -l "SUBTITLES_LANGUAGE" -s "/home/osmc/TV Shows/{{ tvdb_series_name }}/{{ tvdb_series_name }} - {{ series_id|default('XX') }} {% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name }}{% endif %}{{ location|pathext }}"

The RSS feed I've been using to test contains just one show, 'Arrow' and I have this show defined in series: with the tvdb_id also defined.

I've tried many fixes on this forum and others to edit this script but nothing seems to fix this problem. I've tried things such as 'seen: local' as well as a number of others.

Does anyone have a clue what to do, it's a very simple script and I can't see why it's not working.

Posts: 1

Participants: 1

Read full topic

Flexget Error After Upgrade

$
0
0

@wbljb14 wrote:

Hi All

After upgrading my config file is now erroring (see below):

2016-11-16 16:37 VERBOSE check Pre-checked 68 configuration lines
2016-11-16 16:37 CRITICAL manager [/tasks/move-episodes/move] The key filename is not valid here.
2016-11-16 16:37 CRITICAL manager Failed to load config file: Did not pass schema validation.
Could not start manager: Did not pass schema validation.

Very odd, Can anyone help, i'm relatively new at this. Thanks my config is below

`tasks:
#downloading task
download_tv:
priority: 10
rss: http://showrss.info/user/xxxxxxx.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
# fetch all the feed series
all_series: yes
# use transmission to download the torrents
transmission:
host: localhost
port: 9091
username: xxxxxx
password: xxxxxx

#sorting task
move-episodes:
priority: 20
filesystem:
path: /home/osmc/bittorrents/Downloads/
regexp: '.*.(mkv|mp4|avi)$'
recursive: yes
metainfo_series: yes
thetvdb_lookup: yes
accept_all: yes
disable: seen
move:
to: '/home/osmc/bittorrents/TV Shows/{{series_name}}/Season {{series_season}}/'
filename: '{{ series_name }} - {{ series_id }} - {{tvdb_ep_name|default(false)}}{{location|pathext}}'

#Clean completed downloads
clean:
priority: 30
clean_transmission:
host: localhost
port: 9091
username: xxxxxx
password: xxxxxx
finished_for: 2 hours
#min_ratio: 0
delete_files: Yes
#transmission_seed_limits: Yes
disable: [details] `

Posts: 3

Participants: 2

Read full topic

Config Validation, paths, and jinja

$
0
0

@jlyle wrote:

I have the following template defined in my config:

filter-transferring:
    crossmatch:
      from:
        - filesystem:
            path: "{{stage_path|default('/', True)}}"
            regexp: '^.*[\.-]transferring$'
            recursive: no
            retrieve:
              - files
      fields:
        - title
      action: reject
      exact: yes

Where I have defined "stage_path" via the set plugin in a couple other templates. When I try to check my config, i get the following:

check    Pre-checked 209 configuration lines
manager  [/templates/filter-transferring/crossmatch/from/0/filesystem/path] `` does not exist
manager  Failed to load config file: Did not pass schema validation.

Now, while I get that the stage_path entry field won't exist when running the check on the configuration, I figured adding the "default" jinja2 filter would solve the problem of the configuration thinking [/templates/filter-transferring/crossmatch/from/0/filesystem/path] is empty.

Any thoughts on this?

Please note:
I get the same results regardless of if the second parameter to the default filter is True or False.

Explanation of why I am doing this:
I am doing this because before I had multiple versions of the filter-transferring template defined, but it only differed by the path in the crossmatch/from/0/filesystem section. I realize there is no problem with having this defined multiple times as I did before, but it would be much cleaner and more elegant if I could get something like this to work.

Posts: 6

Participants: 3

Read full topic


Undecided Entries help

$
0
0

@chaosmaker wrote:

Hi Everyone, I have this issue where I have a minimal config but I'm getting undecided entries and I'm not sure why? Can someone help out?

web_server:
  bind: 0.0.0.0
  port: 3539
  web_ui: yes
  
schedules:
  # Run every task once an hour
  - tasks: '*'
    schedule:
      hour: 8,12,18

tasks:
  TV Series Download:
    rss: some rss feed
    verify_ssl_certificates: no
    disable: [urlrewriting]
    #Change description
    manipulate:
      - description:
          replace:
            regexp: '\<br /\>'
            format: ''
          replace:
            regexp: '\n'
            format: ' '
    #Write Links
    exec:
      - echo text="{{description}}" >> "C:\Users\\.flexget\crawljobs\{{title}}.crawljob"
      - echo downloadFolder="P:\\Temp\\NewSer\\{{title}}\\" >> "C:\Users\\.flexget\crawljobs\{{title}}.crawljob"
      - echo autoStart=TRUE >> "C:\Users\\.flexget\crawljobs\{{title}}.crawljob"
      - echo forcedStart=TRUE >> "C:\Users\\.flexget\crawljobs\{{title}}.crawljob"
      - echo autoConfirm=TRUE >> "C:\Users\\.flexget\crawljobs\{{title}}.crawljob"

I get undecided entries randomly - and if I provide accept_all: yes then everything gets accepted whether it has been downloaded already or not. It would be great if anybody could give me a pointer as to what I might be doing wrong?

Chaos

Posts: 5

Participants: 3

Read full topic

Filesystem not replacing jinja2 tokens (Possible bug?)

$
0
0

@jlyle wrote:

Didn't want to start off with opening a github issue when I wasn't sure if this is a bug or not, so I figured I would post this here first. I have the following template in my configuration:

filter-transferring:
    crossmatch:
      from:
        - filesystem:
            path: '/{{stage_path}}'
            regexp: '^.*[\.-]transferring$'
            recursive: no
            retrieve:
              - files
      fields:
        - title
      action: reject
      exact: yes

Basically, I'm transferring files via SFTP and want them to be ignored until the SFTP transfer is fully complete. Also, I use this logic in a few different tasks, so I made it general by using the set plugin in those other tasks to make an entry field called stage_path. (As for the reason for the "/" before the {{stage_path}} token, this is related to passing flexget config validation and is disussed in the forum thread here)

However, when I try to run this, it appears that the filesystem plugin does not replace jijna2 tokens. Upon running, I get the following in my log:

2016-11-18 11:47 VERBOSE  filesystem    process-shows   Scanning folder /{{stage_path}}. Recursion is set to False.

Please notice, the log entry has the jinja2 token in it, not the replaced value that I would expect to see.

Am I missing something here or does the filesystem plugin just not replace jinja2 tokens? If it does not, is this by design for some reason, or is it a bug?

Posts: 9

Participants: 2

Read full topic

Set Label of Torrent in rTorrent

$
0
0

@Spencer_Hughes wrote:

Hello,

I was wondering if there is any way to read/write the label of a torrent in rutorrent from Flexget. I use the labels to manage the torrents on my box so being able to manipulate the torrents based on their label would be very useful for me.

Posts: 5

Participants: 2

Read full topic

TVDB Cache and titles

$
0
0

@Emanuele_Sacchi wrote:

After the latest update, grabbing titles from TheTVDB works perfectly even in other languages, but there's a slight problem.

I use Flexget to get TV series both in English and in Italian.
Some series are broadcast in Italy one week after the US, so I have them in both the English and Italian lists. To have Flexget "forget" the episode and grab it in Italian the following week, I just use (from the command line)

flexget series forget "Westworld" s01e07

But when the Italian episode is out, it grabs the title from the cache it keeps, and so titles the episode in English (as it has the English title, downloaded one week earlier, in its cache - I checked the logs, and it says something along the lines of "using thetvdb cache")

Is there a way to instruct Flexget NOT to use its cache, or at least a way to remove titles from the cache as well (like I do with the "forget" command)?

Posts: 4

Participants: 3

Read full topic

"Not" logical statement?

$
0
0

@Mirgolth wrote:

Hi guys,

I'd like to reject the keyword FRENCH unless the series is from a french network.
How can I make that "not" ?

if:
  - NOT "any(network in ['TF1', 'France 2', 'France 2', 'Canal+ (FR)', 'Arte', 'M6'] for network in tvdb_network)":
      regexp:
	    reject:
		  - FRENCH

Posts: 3

Participants: 2

Read full topic

Remove and Delete Data from rTorrent

$
0
0

@Spencer_Hughes wrote:

Hello,

I am looking for a way for automatically remove and delete torrents from rtorrent if they meet a certain condition. Right now, the config for the task is:

Clean_rTorrent:
disable:
- seen
- seen_info_hash
from_rtorrent:
uri: {SCGI URI}
username: {RTORRENT USER}
password: {RTORRENT PASSWORD}
if:
- ratio > 1.0 and custom1 == 'Freeleech': accept
rtorrent:
uri: {SCGI URI}
username: {RTORRENT USER}
password: {RTORRENT PASSWORD}
action: delete
custom2: complete

However, this only removes the torrent from rtorrent, but the data remains on the disk. Is there a way from the rtorrent plugin to trigger the 'remove and delete data' action available in rutorrent?

Posts: 1

Participants: 1

Read full topic

list_match is not valid

$
0
0

@tskmst wrote:

Hey all, I am getting an error stating that list_match is not valid here. My overlying issue is that I cannot configure the movie portion of this config. Removing the list_match(aware I would need it here) states that MOVIES is not a task. Is that a default error of an unfinished config?

  bind: 0.0.0.0
  port: 5050
api: yes
webui: yes
#==========
templates:
  DELUGE:
    deluge:
      username: username
      password: password
      main_file_only: no
      keep_subs: yes
      removeatratio: no
      maxupspeed: 100.0
      maxdownspeed: 12000.0

  RSS-SERIES:
    inputs:
    - rss: rssRoutes
    
  RSS-MOVIES:
    inputs:
    - rss: rssRoutes

  TRAKT-TELEVISION:
    configure_series:
      settings:
        quality: 720p
        propers: no
      from:
        inputs:
        - trakt_list:
            username: username
            list: television
            type: shows
    metainfo_series: yes

  TRAKT-CARTOONS:
    configure_series:
      settings:
        quality: 720p
        propers: no
      from:
        inputs:
        - trakt_list:
            username: username
            list: cartoons
            type: shows
    metainfo_series: yes

  TRAKT-DOCUMENTARIES:
    configure_series:
      settings:
        quality: 720p
        propers: no
      from:
        inputs:
        - trakt_list:
            username: username
            list: documentaries
            type: shows
    metainfo_series: yes

  TRAKT-MOVIES:
    trakt_list: 
      account: username
      list: test
    accept_all: yes
    seen: local
    list_add:
      - movie_list: movie_queue

#  TRAKT-MOVIES:
#    inputs:
#     - trakt_list:
#        username: username
#        list: movies
#        type: movies
#    metainfo_series: yes

tasks:
  MOVIE:
    trakt_lookup: yes
    priority: 4
    template:
      - DELUGE
      - TRAKT-MOVIES
    discover:
      what:
        - movie_list: movie_queue
      from:
        - iptorrents:
            rss_key: rss
            uid: uid
            password: pass
            category:
              - 87
              - 72
              - 90
              - 48
              - 54
              - 62
              - 38
              - 68
              - 20
              - 7
    torrent_alive: 10
    quality: 720p
    list_match:
      from:
        -movie_list: movie_queue
    transmission: yes

  TELEVISION:
    priority: 1
    template:
      - DELUGE
      - RSS-SERIES
      - TRAKT-TELEVISION
    set:
      path: /etc/etc/etc # CHANGE TO WHATEVER PATH YOU PREFER
      label: tv

  CARTOONS:
    priority: 2
    template:
      - DELUGE
      - RSS-SERIES
      - TRAKT-CARTOONS
    set:
      path: /etc/etc/etc # CHANGE TO WHATEVER PATH YOU PREFER
      label: cartoon

  DOCUMENTARY:
    priority: 3
    template:
      - DELUGE
      - RSS-SERIES
      - TRAKT-DOCUMENTARIES
    set:
      path: /etc/etc/etc # CHANGE TO WHATEVER PATH YOU PREFER
      label: documentary

Posts: 2

Participants: 2

Read full topic


Web interface not working

$
0
0

@Lihodej wrote:

Hi! This is my first experience with Flexge, so the configuration through a web interface would be much easier for me.
I'm install Transmission and Flexget. And after i'm edit my config.yml:

web_server:
  bind: 192.168.0.2
  port: 3539
  web_ui: yes
tasks: {}

But Flexget can't start after that. Error msg:
The key 'web_server' is not valid here.
Failed to load config file: Did not pass schema validation.

I be grateful for the help!

Posts: 11

Participants: 3

Read full topic

Linking Trakt to FlexGet

$
0
0

@ElektroPyro wrote:

Hey there, I'm new on the forums and I have a question...

So, I just installed FlexGet to automatically download my series from my Public List on Trakt, and syncing Trakt with FlexGet is not working for me.

This is my config: Pastebin Link

And I only get the following error in the console/logfile:
Error during input plugin trakt_list: Could not retrieve list from trakt (404 Client Error: Not Found for url: https://api-v2launch.trakt.tv/users/ElektroPyro/lists/shows/items)

Any help would be very much appreciated!

Posts: 6

Participants: 2

Read full topic

'exists_series' plugin with 'allow_different_qualities: better' not working as expected?

$
0
0

@Andy2244 wrote:

Hi,

for some reason the exists_series plugin will reject a new better value, even if allow_different_qualities: better is used ?

The log notes this for the old file on disk:
disk_parser.quality = 720p webdl h264 ac3

and the discover entry has this:
entry['series_parser'].quality = 720p hdtv h264

My series are just set to quality: 720p webrip+ so why is it not upgrading the quality from webrip to hdtv?

thx
Andy

Posts: 4

Participants: 2

Read full topic

Get movies task only results in rejected and undecided

$
0
0

@thuemah wrote:

Hi, I need some help with my config. I have been using flexget with a variant of my own config for many years, but decided to change the config file to better handle trakt series/movies.
Used this as a basis for the revised config:
General Purpose Config using Trakt.tv http://flexget.com/Cookbook/Users/qvazzler
For some reason I can only get undecided or rejected results for movies, series are working flawless. The rejected seems legit, the undecided i cant understand.
Any help will be much appreciated.
This is my config now:

secrets: secrets.yml

#run with 'flexget -c config.yml -l flexget.log -L verbose daemon start --daemonize'

web_server: yes

schedules:
  - tasks: [copy_trakt_watchlist, copy_trakt_watchlist_movies, fill_movie_list, get_movies_1080p, get_series_begin, get_series]
    interval:
      hours: 1
  - tasks: [clean_trakt_movies_list, clean_trakt_shows_list, clean_trakt_shows_backlog_list]
    interval:
      days: 5
      
templates:
  global:
    retry_failed:
      retry_time: 5 minutes # Base time in between retries
      retry_time_multiplier: 1 # Amount retry time will be multiplied by after each successive failure
      max_retries: 25 # Number of times the entry will be retried
    regexp:
      reject:
        - (s|d)ub(s|bed)?\b: {from: title}                    # Block any subbed/dubbed/etc videos
        - \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
        - \bR5\b: {from: title}                               # The following are poor quality types that somehow got through the quality
        - \bWEBSCR\b: {from: title}                           # features u o the title including a keyword like "720p" as well
        - \bscreener\b: {from: title}
        - \bTS\b: {from: title}
        - \bCam\b: {from: title}
        - '{C_P}': {from: title}                              # The following are groups with poor quality releases
        - TrTd TeaM: {from: title}
        - \[TNTVillage\]: {from: title}
        - \[facepalm\]: {from: title}
        - \[CasStudio\]: {from: title}
        - \bASAP\b: {from: title}
        - \Sons of Anarchy\b: {from: title}
        - \SPANISH\b: {from: title}
        - \GERMAN\b: {from: title}

    content_filter:
      require:
        - '*.avi'
        - '*.mkv'
        - '*.mp4'
        - '*.r0*'
        - '*.part0*'
      reject: [ 'password.txt' ]
    magnets: no    

  get_series_standards:
    torrent_alive: yes #number of seeders needed to accept
    domain_delay:
      www.torrentleech.org: 10 seconds
      rss.torrentleech.org: 10 minutes
    content_size:
      max: 5000
      min: 60
 ########## 
  transmit-movies:
    transmission:
      host: '{{ secrets.transmission.host }}'
      port: 9091
      username: '{{ secrets.transmission.username }}'
      password: '{{ secrets.transmission.password }}'
      path: '{{ secrets.transmission.download_path_movies }}'
  
  transmit-series:
    transmission:
      host: '{{ secrets.transmission.host }}'
      port: 9091
      username: '{{ secrets.transmission.username }}'
      password: '{{ secrets.transmission.password }}'
      path: '{{ secrets.transmission.download_path_shows }}'
###########  
  download-movie:
    discover:
      what:
        - movie_list: 'movies from trakt'
      from:
        - torrentleech:
            rss_key: '{{ secrets.torrentleech.rss_key }}'
            username: '{{ secrets.torrentleech.username }}'
            password: '{{ secrets.torrentleech.password }}'
      release_estimations: ignore
    exists_movie: '{{ secrets.transmission.download_path_movies }}'
    template:
      - transmit-movies

  download-show:
    discover:
      what:
        - next_series_episodes: yes
      from:
        - torrentleech:
            rss_key: '{{ secrets.torrentleech.rss_key }}'
            username: '{{ secrets.torrentleech.username }}'
            password: '{{ secrets.torrentleech.password }}'
      release_estimations: strict 
    template:
      - transmit-series
##############
      
tasks:
  copy_trakt_watchlist:
    priority: 1
    disable: seen
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: watchlist
      type: shows
    accept_all: yes
    list_add:
      - trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.shows_follow }}'
  
  copy_trakt_watchlist_movies:
    priority: 2
    disable: seen

    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: watchlist
      type: movies
    accept_all: yes
    if:
      - trakt_collected: reject
    list_add:
      - trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.movies_get }}'
  
  fill_movie_list:
    priority: 3
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: '{{ secrets.trakt_lists.movies_get }}'
      type: movies
    accept_all: yes
    list_add:
      - movie_list: 'movies from trakt'
  
  get_movies_1080p:
    torrent_alive: yes #number of seeders needed to accept
    priority: 4
    content_size:
      max: 35040
      min: 1500
    quality: 1080p+ webrip+
    template: download-movie
  
  get_series_begin:
    priority: 5
    disable: seen
    next_trakt_episodes:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: '{{ secrets.trakt_lists.shows_follow }}'
      context: collected
      position: next
    accept_all: yes
    set_series_begin: yes
  
  get_series:
    priority: 6
    configure_series:
      settings:
        timeframe: 6 hours
        target: 720p+ hdtv+
        identified_by: ep
        exact: yes
      from:
        trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.shows_follow }}'
          type: shows
    template:
      - get_series_standards
      - download-show

  get_series_direct:
    manual: yes
    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    configure_series:
      settings:
        quality: 720p+ hdtv+
        exact: yes
      from:
        trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.shows_follow }}'
          type: shows
    template: transmit-series

  get_movies_direct:
    manual: yes
    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    content_size:
      max: 50040
      min: 1500
    quality: 1080p+ webrip+
    list_add:
      - movie_list: 'movies from trakt'
    template: transmit-movies

  
  clean_trakt_movies_list:
    priority: 8
    disable:
      - seen
      - movie_queue
    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: '{{ secrets.trakt_lists.movies_get }}'
      type: movies
      strip_dates: yes
    if:
      - trakt_collected: accept
    list_remove:
      - movie_list: 'movies from trakt'
      - trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.movies_get }}'

  clean_trakt_shows_list:
    priority: 9
    disable: seen
    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: '{{ secrets.trakt_lists.shows_follow }}'
      type: shows
      strip_dates: yes
    if:
      - trakt_collected and (trakt_series_status == 'ended' or trakt_series_status == 'cancelled'): accept
    list_remove:
      - trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.shows_follow }}'

  clean_trakt_shows_backlog_list:
    priority: 10
    disable: seen
    trakt_lookup:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
    trakt_list:
      username: '{{ secrets.trakt.username }}'
      account: '{{ secrets.trakt.account }}'
      list: '{{ secrets.trakt_lists.shows_backlog }}'
      type: shows
      strip_dates: yes
    if:
      - trakt_collected and (trakt_series_status == 'ended' or trakt_series_status == 'cancelled'): accept
    list_remove:
      - trakt_list:
          username: '{{ secrets.trakt.username }}'
          account: '{{ secrets.trakt.account }}'
          list: '{{ secrets.trakt_lists.shows_backlog }}'

Posts: 9

Participants: 3

Read full topic

content_filter with series plugin - change order?

$
0
0

@Just_Me wrote:

Long time user needing to update config due to changed circumstances here...

Problem I'm having is with a need to filter out archives from my accepted torrents. (Thanks to a switch from kodi to plex)..

I've added in a content_filter to block the relevant file extensions, but the problem I'm having is that it fires after the series plugin has accepted the 'best' match from a search from a particular episode, thereby rejecting the only accepted entry.

I've tried adding in a plugin_priority statement to try to trigger the filter to before the series processing so it can eliminate bad entries before series picks out that best quality (from the remainder).. but that doesn't seem to be working, I believe that's due to content_filter being restricted to the modify phase, where series is earlier ("filter, metainfo, learn"? I presume based on what methods are called?)

verbose output notes: "Plugin content_filter has requested task to be ran again after execution has completed.", so presumably it's supposed to go back, remembering that rejection, and pick another from the start.. but at least in the case of my manually-run 'catchup' task, that doesn't happen - though I don't doubt that may well be due to its 'manual' flag..

Any help in getting this sorted would be much appreciated!


Relevant chunks of config:

(nb: experimenting with plugin_priority values, nothing helped or even seemed to make any difference)
tasks:

  catchup:
    plugin_priority:
#      series: 140
#      configure_series: 140
      content_filter: 100
#      download: 145
    discover:
      release_estimations: loose
      what:
        - mock:
          - title: $show
      from:
        - iptorrents:
            rss_key: removed
            uid: removed
            password: removed
            category:  TV-all
    thetvdb_lookup: yes
    series:
      hdtv:
        - $show
    manual: yes
    deluge:
      main_file_only: yes
    template:
      - privtracker
      - tv

templates:

  privtracker:
    cookies: ~/.flexget/cookies.sqlite
    deluge:
      port: 3128
      ratio: 2
      removeatratio: yes
    plugin_priority:
      series: 140
      configure_series: 140
      content_filter: 130
    content_filter:
      reject:
        - '*.rar'
        - '*.r00'
        - '*.r01'
        - '*.zip'

  tv:
    configure_series:
      from:
        thetvdb_list:
          username: removed
          account_id: removed
    exists_series: /home/deluge/video
    thetvdb_lookup: yes
    set:
      movedone: "/home/deluge/bt/archive/tv/{{ series_name }}/Season {{ series_season }}"
      label: tv
      content_filename: >
        {{ series_name }} - {{ series_id }}
        {% if ep_name|default(False) %}- {{ ep_name }} {% endif %}- {{ quality|upper }}
        {% if proper_count %}- proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
    deluge:
      main_file_only: yes

Posts: 3

Participants: 1

Read full topic

Viewing all 716 articles
Browse latest View live