You can play youtube directly in major video players (mpv, vlc), at least on linux. Although, afaik, they use youtube-dl in the background.