We all require some sort of forced schedules. Don't beat yourself too much about this.
Next weekend try this:
For every 55 min of YouTube/Facebook etc, put in 5 min of serious work. Just 5. But be disciplined about this schedule. Time yourself so that you don't do a minute more of the work!
Learn the schedule habit first.