1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Reverse story download order to enable fast-update

Port of 729aa31d86 to v4-dev branch.
This commit is contained in:
Alexander Graf 2018-04-18 16:37:20 +02:00
parent 2d9acd9989
commit 7688bdce45

View File

@ -708,7 +708,7 @@ class Story:
def get_items(self) -> Iterator[StoryItem]:
"""Retrieve all items from a story."""
yield from (StoryItem(self._context, item, self.owner_profile) for item in self._node['items'])
yield from (StoryItem(self._context, item, self.owner_profile) for item in reversed(self._node['items']))
JsonExportable = Union[Post, Profile, StoryItem]