If you followed:

The ‘Automatic’ Anime Download System

The Automatic Downloading System

Here is an update which will improve the system a lot by simplifying the way TV Shows and Anime are added.

First of all, there are a few fixes that need to be done with flexget to improve usability and reliability:

  • In the file: /usr/lib/python2.7/site-packages/flexget/plugins/input/emit_series.py
            if series.identified_by == 'ep':
                search_strings = ['%s %s' % (series.name, id) for id in self.ep_identifiers(season, episode)]
                series_id = 'S%02dE%02d' % (season, episode)
            else:
                search_strings = ['%s %s' % (series.name, id) for id in self.sequence_identifiers(episode)]
                series_id = episode
    should be changed to
            if series.identified_by == 'ep':
                search_strings = ['"%s" %s' % (series.name, id) for id in self.ep_identifiers(season, episode)]
                series_id = 'S%02dE%02d' % (season, episode)
            else:
                search_strings = ['"%s" %s' % (series.name, id) for id in self.sequence_identifiers(episode)]
                series_id = episode
    That is, you should add " around the first %s. This ensures that, with most search engines, the show name is taken as is. In particular: the - sign has no meaning with kat.ph search engine between "", while it negates the word if it's not inside "".
  • The second thing that should be changed is inside /usr/lib/python2.7/site-packages/flexget/plugins/search_kat.py (if you're planning on using this feature): change:
    'verified': {'type': 'boolean'}
    to:
    'verified': {'type': 'boolean'},
    'quality' : {'type': 'string'},
    and after
                if config.get('verified'):
                    search_string += ' verified:1'
    insert
                if config.get('quality'):
                    search_string += ' %s' % config['quality']
    This allows for a new tag that refines the search, for example: 720p x264 will limit the results to that quality.
  • Warning, this is old information as of 01/23/2015 which is kept for historical purposes: Then there is an annoying bug in the search_kat.py plugin which basically only adds rss results if both the search "%series% %season%X%episode%" and "%series% S%season%E%episode%" produce entries. It can be fixed by changing the
    raise PluginWarning(...)
    to
    continue #raise PluginWarning(...)
    It still reacts to the errors, but instead of failing the whole search, it skips the faulty search and tries the next one. If these fixes are done, you can now use the amazingly simple format:
    templates:
      global:
        transmission:
          host: dacia
          username: transmission
          password: secret
          port: 9091
      anime:
        regexp:
          reject:
            - raw
          reject_excluding:
            - UTW|WhyNot|FFF|DameDesuYo|Anime-Koi|Nyanko
        series:
          settings:
            any:
              identified_by: sequence
            720p:
              identified_by: sequence
          720p:
            - Coppelion:
                set:
                  path: "/home/download/Data/Complete/Anime/Coppelion [1]/"
            - Yuusha Ni Narenakatta Ore Wa Shibushibu Shuushoku Wo Ketsui Shimashita:
                alternate_name:
                  - Yuushibu
                set:
                  path: "/home/download/Data/Complete/Anime/Yuusha Ni Narenakatta Ore Wa Shibushibu Shuushoku Wo Ketsui Shimashita [1]/"
            - Nagi no Asukara:
                set:
                  path: "/home/download/Data/Complete/Anime/Nagi no Asukara [1]/"
    
          any:
            - Non Non Biyori:
                set:
                  path: "/home/download/Data/Complete/Anime/Non Non Biyori [1]/"
            - Infinite Stratos 2:
                set:
                  path: "/home/download/Data/Complete/Anime/Infinite Stratos [2]/"
            - Kyoukai no Kanata:
                from_group: UTW
            - Golden Time:
                set:
                  path: "/home/download/Data/Complete/Anime/Golden Time (2013) [1]/"
            - Phi Brain - Kami no Puzzle S3:
                set:
                  path: "/home/download/Data/Complete/Anime/Phi Brain - Kami no Puzzle [3]/"
            - Kizumonogatari:
                set:
                  path: "/home/download/Data/Complete/Anime/Bakemonogatari [3]/"
      tv:
        regexp:
          reject:
            - swesub|ita|rar|speed
          reject_excluding:
            - DIMENSION|KILLERS|FiHTV|IMMERSE|EVOLVE|COMPULSiON|ORENJI|ASAP|CTU|SiNNERS|HorribleSubs|2HD|DiABLO
        series:
          720p:
            - Warehouse 13
            - Continuum
            - Once Upon A Time:
                exact: yes
            - Once Upon A Time in Wonderland
            - The Big Bang Theory
            - Alphas
            - Glee
            - Modern Family
            - The Walking Dead
            - How I Met Your Mother
            - 666 Park Avenue
            - Torchwood
            - Falling Skies
            - Under the Dome
            - Defiance
          settings:
            720p:
              identified_by: ep
              set:
                path: "/home/download/Data/Complete/Series//"
    
    tasks:
      kat-tv:
        discover:
          what:
            - emit_series:
                from_start: yes
          from:
            - kat:
                quality: 720p x264
                category: tv
        template: tv
    
      tokyo-toshokan:
        rss: http://www.tokyotosho.info/rss.php?filter=1&entries=450
        template: anime
    This configuration will look at Tokyo Toshokans RSS feed to see if any new releases are available. Also it will search Kickass.to for new episodes of your wanted TV Shows. The discover feature is basically doing what was defined before, look for episodes by filtering out unwanted shows using kat's search feature. It improves the reliability of the system because it's harder to 'miss' a release due to old age. Well, Anime should be added and set the path according to the rules stated with the automated script. Every Anime will add 3 lines to the Anime preset. TV Shows are easier and you only need to add a single line (in most cases) to the list of TV Shows. Flexget should be run at least once per two days. Recommended is once per day.