Change default value for max_results argument to Mobileclient.search [#617][Closes
@@ -1672,13 +1672,15 @@ class Mobileclient(_Base):
return stations[0].get('tracks', [])
- def search(self, query, max_results=None):
+ def search(self, query, max_results=100):
"""Queries Google Music for content.
:param query: a string keyword to search with. Capitalization and punctuation are ignored.
:param max_results: Maximum number of items to be retrieved.
The maximum accepted value is 100. If set higher, results are limited to 10.
- A value of ``None`` allows up to 999 results per type. Default is ``None``.
+ A value of ``None`` allows up to 1000 results per type but
+ won't return playlist nor situation results.
+ Default is ``100``.
The results are returned in a dictionary with keys:
``album_hits, artist_hits, genre_hits, playlist_hits, podcast_hits,
