Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped down limits on gifs images and youtube #44

Merged
merged 2 commits into from
Oct 3, 2019
Merged

Bumped down limits on gifs images and youtube #44

merged 2 commits into from
Oct 3, 2019

Conversation

Splyth
Copy link
Owner

@Splyth Splyth commented Oct 3, 2019

Hopefully help address #40

That should hopefully make the results a little more accurate
@Splyth Splyth mentioned this pull request Oct 3, 2019
noah-guillory
noah-guillory previously approved these changes Oct 3, 2019
Copy link
Collaborator

@noah-guillory noah-guillory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@@ -147,7 +147,7 @@ def youtube_search(query):
'part': 'snippet',
'q': query,
'key': GOOGLE_API_KEY,
'maxResults': 10
'maxResults': 3
Copy link
Collaborator

@jedibob5 jedibob5 Oct 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we don't want to put youtube to first result only? In almost all youtube me cases I can think of, I feel like people generally want to find a specific video. It's not quite like image me where there can be multiple acceptable images, so it just needs to grab any one of them.

Edit: I guess for songs or something you can possibly get multiple good results near the top of the list, but even at 3 there's a good chance of grabbing live versions when you wanted the studio.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a super strong objection to that. If no one else weighs in then I'll do that.

@@ -192,7 +192,7 @@ def gify_search(media_type, query):
:query what to query for
"""

limit = 10
limit = 3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to have gif limit different than other image searching? I imagine the use cases are almost identical.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seconding this, gif searches can probably be a bit more lax.

Mill1893
Mill1893 previously approved these changes Oct 3, 2019
Copy link
Collaborator

@Mill1893 Mill1893 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, comment is a minor nit that can be ignored if desired

jedibob5
jedibob5 previously approved these changes Oct 3, 2019
Copy link
Collaborator

@jedibob5 jedibob5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment can also be ignored at the bot-maker's discretion if desired

@Splyth Splyth dismissed stale reviews from jedibob5, Mill1893, and noah-guillory via 4ceb155 October 3, 2019 20:30
@Splyth Splyth merged commit d0305de into master Oct 3, 2019
@Splyth
Copy link
Owner Author

Splyth commented Oct 3, 2019

I went ahead and did the merge cause it's was literally changing some numbers and one line of code after review

@Splyth Splyth deleted the limits branch October 3, 2019 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants