President John Magufuli has hit out at unpleasant television programme, which are broadcast by local channels.