TV show management with Flexget

I use Flexget to automatically find and download TV shows for my viewing pleasure. I use it in conjunction with TorrentLeech and tl2rssPL, but it can be used with any site which provides an index and source for the shows you're interested in.

Setting it up can be a pain, so I thought publishing my config may be of use.

I use Flexget in two modes on the same feed:

  1. Download all episodes for TV shows I watch
  2. Download all season premieres

The second is, for me, less important than the first, but it means I have a constant stream of potential new shows to watch (assuming I have the time to add to my collection) without having to hunt them out and then retrieve them. My set-up, which I may document more fully in future, downloads, puts in the right place, unpacks and then emails me to tell me it's available for watching. But that's for another day.


Here's a basic flexget.yml config for downloading shows and season premieres, putting the torrents into different places:

# Configuration should be written in here. See documentation at http://flexget.com/wiki/Configuration
presets:
  global:
    download: /home/torrent/watch/television/

feeds:
  torrentleech:
    rss: http://127.0.0.1:8080/rss
    regexp:
      reject:
        - HebSub
        - Concert
        - German
        - Dubbbed
        - German
        - DVDR
        - DVDRip
        - BRRip
        - Im A Dealer
        - Complete
        - Doctor Who Confidential
    series:
      settings:
        all:
          min_quality: hdtv
          max_quality: 720p
          timeframe: 5 hours
      all:
        - Al Murray
        - Arrested Development
        - The Big Bang Theory
        - Boardwalk Empire
        - Californication
        - Chase 2010
        - Chase 2011
        - Chuck
        - Community
        - Curb Your Enthusiasm
        - Derren Brown
        - Desperate Housewives
        - Dexter
        - Doctor Who
        - Dollhouse
        - Downton Abbey
        - Eli Stone
        - The Event
        - Entourage
        - Fresh Meat
        - Glee
        - Gossip Girl
        - Greys Anatomy
        - Have I Got News For You
        - Heroes
        - House
        - The IT Crowd
        - How I Met Your Mother
        - Lie To Me
        - Little Britain USA
        - Live At The Apollo
        - The Mentalist
        - Mad Men
        - Misfits
        - Nip Tuck
        - Penn and Teller Bullshit
        - QI
        - Red Dwarf
        - The Riches
        - Skins
        - The Simpsons
        - Sons of Anarchy
        - South Park
        - Terminator The Sarah Connor Chronicles
        - Terra Nova
        - True Blood
        - Trust Me
        - Two And A Half Men
        - Weeds
    series_premiere:
      path: /home/torrent/watch/premieres/
      min_quality: hdtv
      max_quality: 720p
      timeframe: 5 hours

Some notes:
The 'rss' parameter is where the RSS feed containing the available entries. I run tl2rss on the same machine, so I point it to 127.0.0.1 port 8080.

Having seen an entry for a new show to download, if it's 720p quality, it'll download immediately, if it's lower than 720p, then it'll wait 5 hours (timeframe: 5 hours), polling every 15 minutes or so, until a higher quality becomes available. If after 5 hours, a 720p isn't available, it'll download the highest quality one it's seen.

Happy watching!


Related posts:

  1. tl2rssPL: Perl TorrentLeech To RSS server

8 comments to TV show management with Flexget

  • The "all" group you have used in series doesn't have any settings applied to it. I think you meant to use "720p" in there instead.

    Also feel free tell us where you had hard time … :)

    • jkt

      Hey,

      The difficulty I had was getting presets to work beyond the basic setup I have listed. I kept falling into the merging limitations (detailed here: http://flexget.com/wiki/Plugins/preset) when having a preset of 'tv' (with timeframe and min/max qualities) and setting 'preset: tv' in the torrentleech feed.

      If I could get a global preset that requests 720 for 5 hours then defaults to the max quality and have it applied to the entire torrentleech feed, I'd be a happy man. If you could suggest how that could be achieved with the feed is set up, I'd love to hear it!

      For reference, my old (0.9 version of flexget) config was: http://jkt.im/~tullettj/flexget.0.9.yml – that worked fine on 0.9 but broke on 1.0.

      I appreciate the feedback! I'll update my post when I've resolved the issue I didn't know I had :)

  • Hi Jonathan,
    Just fixed tl2rss (new bug exposed by a subtle TL change).
    I googled a bit and found about your version.
    You are probably not using it now that you have your own version, but do give it a shot, its been much improved and it now remembers your password so you hardly need to login again.

    • jkt

      Good work on fixing the bug!

      I'll keep using mine for now – as long as they don't re-introduce the captcha on first login, it'll be fine. If they revert to that old system, I'll be switching back to yours again :)

  • You have no idea..
    it boiled down to a Java method that returns the cookies in the reverse order, and to TL sending multiple cookies with the same name (PHPSESSIONID).
    was a bitch to figure out.

    anyway, I knew you would want to keep using your own.
    pretty much for the same reason I am using my own instead of trying TL built in RSS feed again :).

  • btw, your flexget link or incorrect.