Sadly my abilities in lua to update a mod like this one is not possible for me. However there are other addons out there that do filter loot. I'll post the links to them in case you are unable to get the help you need.
LootWhatIWant
Easyloot
Trashcan