Added max_results to YouTube search
This commit is contained in:
parent
9b0a72269a
commit
e89046f12a
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ class GoogleYoutubePlugin(GooglePlugin, CalendarInterface):
|
||||||
|
|
||||||
service = self._get_service()
|
service = self._get_service()
|
||||||
result = service.search().list(part=parts, q=query, type=types,
|
result = service.search().list(part=parts, q=query, type=types,
|
||||||
|
maxResults=max_results,
|
||||||
**kwargs).execute()
|
**kwargs).execute()
|
||||||
|
|
||||||
events = result.get('items', [])
|
events = result.get('items', [])
|
||||||
|
|
Loading…
Reference in a new issue