doc: Note new features with versionadded

This commit is contained in:
Alexander Graf
2018-08-23 17:25:28 +02:00
parent b91e73b090
commit 0dcc912987
4 changed files with 25 additions and 11 deletions

View File

@@ -630,6 +630,9 @@ class Instaloader:
def download_tagged(self, profile: Profile, fast_update: bool = False,
target: Optional[str] = None,
post_filter: Optional[Callable[[Post], bool]] = None) -> None:
"""Download all posts where a profile is tagged.
.. versionadded:: 4.1"""
if target is None:
target = profile.username + ':tagged'
self.context.log("Retrieving tagged posts for profile {}.".format(profile.username))
@@ -721,7 +724,9 @@ class Instaloader:
:param stories: :option:`--stories`.
:param fast_update: :option:`--fast-update`.
:param post_filter: :option:`--post-filter`.
:param storyitem_filter: :option:`--post-filter`."""
:param storyitem_filter: :option:`--post-filter`.
.. versionadded:: 4.1"""
for profile in profiles:
with self.context.error_catcher(profile.username):

View File

@@ -614,7 +614,9 @@ class Profile:
self._metadata('edge_saved_media')))
def get_tagged_posts(self) -> Iterator[Post]:
"""Retrieve all posts where a profile is tagged."""
"""Retrieve all posts where a profile is tagged.
.. versionadded:: 4.0.7"""
self._obtain_metadata()
yield from (Post(self._context, node, self if int(node['owner']['id']) == self.userid else None) for node in
self._context.graphql_node_list("e31a871f7301132ceaab56507a66bbb7",