DZNPhotoPickerController
DZNPhotoPickerController copied to clipboard
Google Images integration. Fixes #111
These changes address issues with the google service. Google only allows 10 photos per search. This code will recursively fetch more results until the total number needed to fulfill the search page are returned. Google also returns an error after 100 results are fetched so that is the hard limit on the number of images per query. There are also a few other fixes for UI includes the searchbar when there is only one title. This code could be cleaned up a bit by having a constant that defines the maximum number of results for a given service. Currently this is hardcoded in the params for the service. Theoretically the code should work for any “underperforming” service.
Thanks for this. Will review soon-ish.
I had a merge issue with DZNPhotoPickerController.m. I'll submit the fix momentarily.
Yes, that was my merge issue. Apologies for not catching it the first time... so if you're ok with the rest of the changes, you have the full edits now.
Hi, Thank you. My team is shipping a user story using the Google image search. I'd like to request a merge on the fix to help ship the feature.
Thank you, James
Hi! Any plans for merging this pull request?