I'm supposed to study at the library but I end up browsing away instead.
Why weren't you studying?
I hate studying in the library because it's too much work.
Whether or not you do so in the library, you need to study, otherwise you won't be able to do well in school.
It's just the library. I can always come back to it later.
I can understand why being in the library makes it hard to study, because I sometimes have trouble with it myself.  If you prefer to be at home, where you are comfortable and in familiar surroundings, you should do your studying there.  However, try not to procrastinate, as something could distract you unexpectedly, and there won't be time to come back.