A few questions. (Piracy Related)

Hi. So I’ve got a few questions to ask because I’m not quite sure on this topic. Ive heard on the news recently that Kodi is being abused and used to stream illegal content which i don’t believe in or condone in (piracy). But heres my question.

Is it classed illegal for me to do so,

Use Enigma2 Client to stream Free to Air i.e Freest/ OTA TV from my Zgemma H2s Linux box to another room or a Raspberry Pi that is running Kodi or a computer that is running Mac & Linux?

Using Kodi as a UpNp Server to stream paid for music and films to a Raspberry Pi or a Computer that is running Mac or Linux, Tablet i.e iPad? In another room.

The reason why i ask a few years ago here in the UK that apparently having a ripped CD in your iTunes library is apparently illegal but how can it be if you bought that CD don’t you own that copy? isn’t it the same with DVDs/Blu-rays?

I know this topic is a grey area but i just want to know and see what people think.

Thanks.

Jack.