Fix incorrect docstrings (#439)

Changes proposed in this pull request:
- fix docstrings with inaccurate descriptions

While going through the pyLast documentation, I noticed that a few
functions had inaccurate descriptions. The proper use of these functions
should be intuitive from their names, but I thought it still might be
useful to fix their docstrings. Let me know if there are any issues with
these changes. Thanks!
This commit is contained in:
Hugo van Kemenade 2023-10-27 07:00:57 +03:00 committed by GitHub
commit 6f30559a3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1156,7 +1156,7 @@ class _BaseObject:
def get_wiki_published_date(self): def get_wiki_published_date(self):
""" """
Returns the summary of the wiki. Returns the date on which the wiki was published.
Only for Album/Track. Only for Album/Track.
""" """
return self.get_wiki("published") return self.get_wiki("published")
@ -1170,7 +1170,7 @@ class _BaseObject:
def get_wiki_content(self): def get_wiki_content(self):
""" """
Returns the summary of the wiki. Returns the content of the wiki.
Only for Album/Track. Only for Album/Track.
""" """
return self.get_wiki("content") return self.get_wiki("content")
@ -1543,7 +1543,7 @@ class _Opus(_Taggable):
return self.info["image"][size] return self.info["image"][size]
def get_title(self, properly_capitalized: bool = False): def get_title(self, properly_capitalized: bool = False):
"""Returns the artist or track title.""" """Returns the album or track title."""
if properly_capitalized: if properly_capitalized:
self.title = _extract( self.title = _extract(
self._request(self.ws_prefix + ".getInfo", True), "name" self._request(self.ws_prefix + ".getInfo", True), "name"