The problem was that when the capitalization wasn't correct the html tags which had the information about the number of bookmarks changed. When the username was written correctly the tag would be span and when in wasn't it would be a.
So instead of obtaining the information from the navigation panel I changed the code and now it takes that information from the heading of the page:
1 - 20 of 587 Bookmarks by ...
I also changed the code for user.bookmarks and user.works, because they caused the same error if the capitalization was wrong
fix #79
The problem was that when the capitalization wasn't correct the html tags which had the information about the number of bookmarks changed. When the username was written correctly the tag would be
span
and when in wasn't it would bea
. So instead of obtaining the information from the navigation panel I changed the code and now it takes that information from the heading of the page:1 - 20 of 587 Bookmarks by ...
I also changed the code for user.bookmarks and user.works, because they caused the same error if the capitalization was wrong