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

Fixes #100.
This commit is contained in:
Alexander Graf 2018-04-18 16:24:47 +02:00
parent 94df60292e
commit 729aa31d86

View File

@ -1162,7 +1162,7 @@ class Instaloader:
self._log("Retrieving stories from profile {}.".format(name))
totalcount = len(user_stories["items"])
count = 1
for item in user_stories["items"]:
for item in reversed(user_stories["items"]):
self._log("[%3i/%3i] " % (count, totalcount), end="", flush=True)
count += 1
with self._error_catcher('Download story from user {}'.format(name)):