diff --git a/instaloader/__main__.py b/instaloader/__main__.py index 01eb694..6843efb 100644 --- a/instaloader/__main__.py +++ b/instaloader/__main__.py @@ -94,7 +94,7 @@ def _main(instaloader: Instaloader, targetlist: List[str], instaloader.download_post(structure, os.path.dirname(target)) elif isinstance(structure, StoryItem): instaloader.context.log("Attempting to download {} ({})".format(structure, target)) - instaloader.download_story(structure, os.path.dirname(target)) + instaloader.download_storyitem(structure, os.path.dirname(target)) elif isinstance(structure, Profile): instaloader.context.log("Going to download {} ({})".format(structure.username, target)) profiles.add(structure.username) diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index 5eb7e72..d11e0d3 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -458,11 +458,11 @@ class Instaloader: self.context.log("[%3i/%3i] " % (count, totalcount), end="", flush=True) count += 1 with self.context.error_catcher('Download story from user {}'.format(name)): - downloaded = self.download_story(item, filename_target) + downloaded = self.download_storyitem(item, filename_target) if fast_update and not downloaded: break - def download_story(self, item: StoryItem, target: str) -> bool: + def download_storyitem(self, item: StoryItem, target: str) -> bool: """Download one user story. :param item: Story item, as in story['items'] for story in :meth:`get_stories`