The pretense was drugs.
I also noted that the dogs hit on tobacco.
If the police enter you house because they have reason to believe that you have drugs in your house, and during the course of their investigation they find kiddie porn, you're arrested.