From 9c2e7c70ac69ffa0f8c2da7e184f4db338eed833 Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Mon, 16 Mar 2020 13:38:13 +0100 Subject: [PATCH] Fix number output in download_igtv() --- instaloader/instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index 9359552..a7d399d 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -924,7 +924,7 @@ class Instaloader: .. versionadded:: 4.3""" self.context.log("Retrieving IGTV videos for profile {}.".format(profile.username)) for number, post in enumerate(profile.get_igtv_posts()): - self.context.log("[{0:{w}d}/{1:{w}d}] ".format(number, profile.igtvcount, w=len(str(profile.igtvcount))), + self.context.log("[{0:{w}d}/{1:{w}d}] ".format(number+1, profile.igtvcount, w=len(str(profile.igtvcount))), end="", flush=True) if post_filter is not None and not post_filter(post): self.context.log('<{} skipped>'.format(post))