(a) Upon a showing of probable cause that the obscenity laws of this state are being violated, any judge or magistrate shall be empowered to issue a search warrant in accordance with the general law pertaining to searches and seizures in this state. The warrant shall authorize or designate a law enforcement officer to enter upon the premises where alleged violations of the obscenity laws are being carried on and take into custody one (1) example of each piece of matter which is obscene. Return on the search shall be in the manner prescribed generally for searches and seizures in this state, except that matter that is seized shall be retained by the district attorney general to be used as evidence in any legal proceeding in which the matter is in issue or involved.
(b) When a search and seizure takes place in accordance with this section, any person aggrieved by the search and seizure, or claiming ownership of the matter seized, may file a motion in writing with the court of record in the jurisdiction in which the search and seizure took place, contesting the legality of the search and seizure or the fact of the obscenity of the matter seized. The court shall set a hearing within one (1) day after the request therefor, or at such time as the requesting party might agree. In the event the court finds that the search and seizure was illegal or if the court or any other court of competent jurisdiction shall determine that the matter is not obscene, the matter shall be forthwith returned to the person and to the place from which it was taken.