I do really enjoy a lot of YouTube videos, but there is an opportunity cost for each one, just like any TV — or going to a show or sporting event.
What I find works is to timebox or budget my video consumption, say to lunchtimes, or no more than 30 minutes a day (which is still quite a bit of time: 1/16th of my daily free time!).