Netflix announced it will buy Warner Bros. Discovery's studios and streaming assets.