Nothing contained in this article shall in any way be construed to authorize, license or permit any machine or device that exhibits or allows viewing of photographs or moving pictures of an obscene or pornographic nature, or in any manner prohibited by law or the ordinances of the county. Any operator or proprietor or other person who shall allow in any way, either directly or indirectly, any such use of any device or machine shall be subject to immediate confiscation by the sheriff's department of such device or machine as contraband and shall be punished as for a misdemeanor unless otherwise provided by law.