Closed astanin closed 5 years ago
Ugh, I totally missed #40. Sorry about that!
Thanks for the PR. It looks good. Could you give me some examples of a user or two that doesn't work in the current version?
An example of the profile where username doesn't work: https://www.flickr.com/people/srg0/
Thanks for this modification, It would be nice if this information is also mentioned in the readme tuto
Good idea @softyoda ! Just added that.
It appears that some users cannot be found by findByUserName(); API returns error code 1. Such users can still be referenced by their email or URL.
Proposed change: use findByEmail and findByUrl methods instead of findByUserName if the given username appears to be an email (contains
@
) or a URL (starts withhttps://
,www.flickr.com
, orflickr.com
.).Potential issues: users having @ in their username may have to use URL of their profile instead.
P.S. This is the same as the closed pull request #40, but now from a feature branch.