This is the one I was speaking of https://github.com/Flexget/Flexget/blob/master/flexget/plugins/services/torrent_cache.py