Updated for more recent Flexget upgrades.