Sonarr/Radarr will do this for you automagically for most TV and Movies, never have to visit a dodgy torrent site again.
Started setting it up years ago and over time re-downloaded all those shitty yify rips with full fat bluray remuxes wherever available and the highest quality possible otherwise. Hit 100tb pretty quickly lol.
I have my rig set up to automatically upgrade to bluray remuxes when available, then once they are older than 1 month and over a certain filesize they get automatically compressed with a fairly slow, low crf H265-10bit encode with FileFlows to cut their size roughly in half while still being visually perfect on the normal TVs, all 4k content stays untouched for the main theatre.