Modify rules to flexget plugin