mirror of
https://github.com/instaloader/instaloader.git
synced 2024-08-18 12:49:38 +02:00
NodeIterator: Support single page data
This commit is contained in:
parent
14124b617e
commit
99c3960ad4
@ -137,7 +137,7 @@ class NodeIterator(Iterator[T]):
|
|||||||
if self._first_node is None:
|
if self._first_node is None:
|
||||||
self._first_node = node
|
self._first_node = node
|
||||||
return item
|
return item
|
||||||
if self._data['page_info']['has_next_page']:
|
if self._data.get('page_info', {}).get('has_next_page'):
|
||||||
query_response = self._query(self._data['page_info']['end_cursor'])
|
query_response = self._query(self._data['page_info']['end_cursor'])
|
||||||
if self._data['edges'] != query_response['edges'] and len(query_response['edges']) > 0:
|
if self._data['edges'] != query_response['edges'] and len(query_response['edges']) > 0:
|
||||||
page_index, data = self._page_index, self._data
|
page_index, data = self._page_index, self._data
|
||||||
|
Loading…
Reference in New Issue
Block a user