Nothing contained in this chapter shall in any way be construed to authorize, license or permit any machine or device which exhibits or allows viewing of photographs or moving pictures of an obscene or pornographic nature or in any manner prohibited by law or by the ordinances of the county. The machines of any operator or proprietor or other person who shall permit 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 as contraband and such person shall be punished as for a misdemeanor unless otherwise provided by law.