Flexget - Override preset per series help

Suggest, post, or discuss plugins for Deluge
Post Reply
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Flexget - Override preset per series help

Post by elsteve »

I have a config.yml that contains the following: (see end of post) The problem I am having is that the individual movedone settings for each show are not overriding
the movedone setting in the preset. (Am assuming that they should but do not know for certain) The path setting starts the download in the correct place, but when it completes the file is moved back to the directory specified in the preset, not the once specified for the particular show. Can this config be changed to make this work correctly? I am running flexget 1.0r1636 (Have avoided upgrading - didn't want to go through the upgrade steps - but if the current version fixes this issue then I will...)

Thanks in advance!

Code: Select all

feeds:  
  tvshows:
    rss: http://xxx.xxx.xxx
    preset: tv
    set:
      movedone: "/home/elsteve/TV Shows/%(series_name)s/Season %(series_season)d/"
    regexp:
      reject:
        - complete
presets:
  tv:
    series:
      settings:
        720p:
          timeframe: 6 hours
          quality: 720p
      720p:
        - 'Chase 2010':
            set:
              movedone: "/home/elsteve/TV Shows/Chase (2010)/Season %(series_season)d/"
        - Criminal Minds
        - CSI:
            set:
              movedone: "/home/elsteve/TV Shows/CSI: Crime Scene Investigation/Season %(series_season)d/"
              path: "/home/elsteve/TV Shows/CSI: Crime Scene Investigation/Season %(series_season)d/"
        - 'CSI: Miami':
            exact: yes
            set:
              movedone: "/home/elsteve/TV Shows/CSI: Miami/Season %(series_season)d/"
              path: "/home/elsteve/TV Shows/CSI: Miami/Season %(series_season)d/"
Last edited by Cas on Tue Jan 25, 2011 4:40 pm, edited 1 time in total.
Reason: Config/code should be within code tags
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Flexget - Override preset per series help

Post by gazpachoking »

elsteve wrote:I have a config.yml that contains the following: (see end of post) The problem I am having is that the individual movedone settings for each show are not overriding
the movedone setting in the preset. (Am assuming that they should but do not know for certain) The path setting starts the download in the correct place, but when it completes the file is moved back to the directory specified in the preset, not the once specified for the particular show. Can this config be changed to make this work correctly? I am running flexget 1.0r1636 (Have avoided upgrading - didn't want to go through the upgrade steps - but if the current version fixes this issue then I will...)

Thanks in advance!
Yeah, the issue here is that the set plugin (used from the preset) runs after the series plugin by default, so your movedone settings are overridden. You could use plugin_priority to change the order these are run, but probably easier is to change where you are setting movedone to always be with the series plugin. Also, there is no need to set movedone to the same thing you have set path to, (although I suspect those are just left over from testing.) Here is how I would do it:

Code: Select all

feeds:
  tvshows:
    rss: http://xxx.xxx.xxx
    preset: tv
    regexp:
      reject:
        - complete
presets:
  tv:
    series:
      settings:
        720p:
          timeframe: 6 hours
          quality: 720p
          set:
            movedone: "/home/elsteve/TV Shows/%(series_name)s/Season %(series_season)d/"
      720p:
        - 'Chase 2010':
            set:
              movedone: "/home/elsteve/TV Shows/Chase (2010)/Season %(series_season)d/"
        - Criminal Minds
        - CSI:
            set:
              movedone: "/home/elsteve/TV Shows/CSI: Crime Scene Investigation/Season %(series_season)d/"
        - 'CSI: Miami':
            exact: yes
            set:
              movedone: "/home/elsteve/TV Shows/CSI: Miami/Season %(series_season)d/"
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Re: Flexget - Override preset per series help

Post by elsteve »

Thanks for the prompt reply...

(Yes the path settings were left over from testing)

I had thought about the solution you presented, setting the movedone for each show and removing it from the preset, but was trying to avoid adding that entry to the other 70 shows in my config file...it's just a handful of 'em that are "broken" - CSI's, Law & Order's, Chase (2010), etc.

In any case, if that's what works, then that is what I will go with.

Thanks again.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Flexget - Override preset per series help

Post by gazpachoking »

elsteve wrote:Thanks for the prompt reply...

(Yes the path settings were left over from testing)

I had thought about the solution you presented, setting the movedone for each show and removing it from the preset, but was trying to avoid adding that entry to the other 70 shows in my config file...it's just a handful of 'em that are "broken" - CSI's, Law & Order's, Chase (2010), etc.

In any case, if that's what works, then that is what I will go with.

Thanks again.
I didn't mean set it for each show, I meant set it for each series group, notice the part I edited is in the 720p series group settings, not under a particular show.
elsteve
New User
New User
Posts: 8
Joined: Sun Jan 24, 2010 9:26 pm

Re: Flexget - Override preset per series help

Post by elsteve »

Ah, yes that makes more sense.

Thanks!
Post Reply