orijtech / media-search

Media search's code
Apache License 2.0
14 stars 1 forks source link

Request 20 results in search #5

Closed hvent90 closed 6 years ago

hvent90 commented 6 years ago

This requires adding the max_per_page key in the request body.

{
    "q": "Foobar",
    "max_per_page": 20
}
hvent90 commented 6 years ago

@odeke-em, settingmax_per_page above 5 is not returning more than 5 results.

Here is the curl command I used:

curl -X POST http://localhost:9778/search --data '{"q":"Spiderman", "max_per_page": 20}'

odeke-em commented 6 years ago

Thank you very much @hvent90, something is trippy with the YouTube API, it is puzzling me, the old tests are now broken https://github.com/orijtech/youtube/blob/8d41115717442e910d42ffa5b19e289844dde812/example_test.go#L41-L46

I think for now let's try to handle the case in which we have an indeterministic number of results, sorry for this.