Added max_results to YouTube search

This commit is contained in:
BlackLight 2018-12-12 23:03:17 +01:00
parent 9b0a72269a
commit e89046f12a

View file

@ -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', [])