I’ve tried to do this a few times, and unfortunately it feels like you really have to go all in on managing your own content library.
Like many, I had stopped pirating shit when netflix etc were “good”.
None of the streaming services want you to use them outside of their official sites/apps, so you end up being limited to like 720p when running them through kodi etc.