mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 12:54:58 +00:00
search: fixed wrong doc check
This commit is contained in:
parent
11128cde27
commit
6a3926fcd6
@ -312,11 +312,9 @@ class GooglePlayAPI(object):
|
|||||||
raise LoginError('Unexpected behaviour, probably expired '
|
raise LoginError('Unexpected behaviour, probably expired '
|
||||||
'token')
|
'token')
|
||||||
cluster = response.payload.listResponse.cluster[0]
|
cluster = response.payload.listResponse.cluster[0]
|
||||||
try:
|
print(cluster.doc)
|
||||||
cluster.HasField('doc')
|
if len(cluster.doc) == 0:
|
||||||
except ValueError as e:
|
print('No results for query %s' % query)
|
||||||
if self.debug:
|
|
||||||
print('No result for query: %s' % query)
|
|
||||||
break
|
break
|
||||||
if cluster.doc[0].containerMetadata.nextPageUrl != "":
|
if cluster.doc[0].containerMetadata.nextPageUrl != "":
|
||||||
nextPath = cluster.doc[0].containerMetadata.nextPageUrl
|
nextPath = cluster.doc[0].containerMetadata.nextPageUrl
|
||||||
|
Loading…
Reference in New Issue
Block a user