Instead of limiting the search to one user and hoping that will be the correct on (spoiler: it was wrong for me), I made it search for the username and check matching username.
Example:
Entering the username 123 (a user has that exact username) the first match is not the correct one (a user with the username 123.amazingvideos).
I am no python programmer so this pull request is more a suggestion but I wanted to do more than add an issue. :)
Also added [] to the return after logging the error, since without it I got TypeError: object of type 'NoneType' has no len()
Instead of limiting the search to one user and hoping that will be the correct on (spoiler: it was wrong for me), I made it search for the username and check matching username.
Example: Entering the username
123
(a user has that exact username) the first match is not the correct one (a user with the username123.amazingvideos
).I am no python programmer so this pull request is more a suggestion but I wanted to do more than add an issue. :)
Also added
[]
to the return after logging the error, since without it I gotTypeError: object of type 'NoneType' has no len()