I only have a little to add to the above. Programming is a pretty attention-intensive activity, and if 20 minutes is the maximum amount of time you can focus on a tutorial video then you might be better off using written tutorials, even if you enjoy videos more.
Paying attention, for me, is always about will power; I don't know any tricks, you just have to make a firm decision to work and then stick to it. If your cursor starts drifting towards a link to a fun video while you're working, there's nothing to be done except to move the mouse away and get back to work. It might help to set specific project goals and then dedicate fixed amounts of time to working towards them. When I set aside exactly one hour of work time a day for programming, and don't allow myself to spend more or less time than that each session, I have a much easier time staying on task. My mind still wanders from time to time but it's easier to draw it back. No trick in the world will keep you engaged with a hobby that you don't enjoy.