mirror of
https://github.com/instaloader/instaloader.git
synced 2024-09-11 16:22:24 +02:00
Do not log Post's username in download_saved_posts
This improves speed, as get_saved_posts() returns Posts that do not have owner_profile info. So, printing the owner_username often required an additional request.
This commit is contained in:
parent
b5ad92e236
commit
b1e55a41a4
@ -529,11 +529,10 @@ class Instaloader:
|
|||||||
for post in Profile.from_username(self.context, self.context.username).get_saved_posts():
|
for post in Profile.from_username(self.context, self.context.username).get_saved_posts():
|
||||||
if max_count is not None and count > max_count:
|
if max_count is not None and count > max_count:
|
||||||
break
|
break
|
||||||
name = post.owner_username
|
|
||||||
if post_filter is not None and not post_filter(post):
|
if post_filter is not None and not post_filter(post):
|
||||||
self.context.log("<pic by {} skipped".format(name), flush=True)
|
self.context.log("<{} skipped>".format(post), flush=True)
|
||||||
continue
|
continue
|
||||||
self.context.log("[{:>3}] {} ".format(count, name), end=str(), flush=True)
|
self.context.log("[{:>3}] ".format(count), end=str(), flush=True)
|
||||||
count += 1
|
count += 1
|
||||||
with self.context.error_catcher('Download saved posts'):
|
with self.context.error_catcher('Download saved posts'):
|
||||||
downloaded = self.download_post(post, target=':saved')
|
downloaded = self.download_post(post, target=':saved')
|
||||||
|
Loading…
Reference in New Issue
Block a user