X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FNetflixSession.py;h=332ab260bc7e99cc661a270fcedaddb7ef407208;hp=2ba0cbb9bd4722dcfcf3b7e071e509ea60a0dd17;hb=74733fb1ca2b352a087dd63a60d89a26fa98b27a;hpb=23cea7386839a66bbd644b2631100106c8cca710 diff --git a/resources/lib/NetflixSession.py b/resources/lib/NetflixSession.py index 2ba0cbb..332ab26 100644 --- a/resources/lib/NetflixSession.py +++ b/resources/lib/NetflixSession.py @@ -1495,7 +1495,7 @@ class NetflixSession: response = self.session.get(url, params=payload, verify=self.verify_ssl); return self._process_response(response=response, component=url) - def fetch_search_results (self, search_str, list_from=0, list_to=48): + def fetch_search_results (self, search_str, list_from=0, list_to=10): """Fetches the JSON which contains the results for the given search query Parameters @@ -1520,7 +1520,10 @@ class NetflixSession: paths = [ ['search', encoded_search_string, 'titles', {'from': list_from, 'to': list_to}, ['summary', 'title']], ['search', encoded_search_string, 'titles', {'from': list_from, 'to': list_to}, 'boxarts', '_342x192', 'jpg'], - ['search', encoded_search_string, 'titles', ['id', 'length', 'name', 'trackIds', 'requestId']] + ['search', encoded_search_string, 'titles', ['id', 'length', 'name', 'trackIds', 'requestId']], + ['search', encoded_search_string, 'suggestions', 0, 'relatedvideos', {'from': list_from, 'to': list_to}, ['summary', 'title']], + ['search', encoded_search_string, 'suggestions', 0, 'relatedvideos', {'from': list_from, 'to': list_to}, 'boxarts', '_342x192', 'jpg'], + ['search', encoded_search_string, 'suggestions', 0, 'relatedvideos', ['id', 'length', 'name', 'trackIds', 'requestId']] ] response = self._path_request(paths=paths) return self._process_response(response=response, component='Search results')