mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
Removed old docstring.
This commit is contained in:
parent
085b89b70b
commit
6ab0f8d3a7
1 changed files with 2 additions and 7 deletions
|
|
@ -143,14 +143,9 @@ class DeezerPlugin(MetadataSourcePlugin[Response], BeetsPlugin):
|
|||
)
|
||||
|
||||
def track_for_id(self, track_id: str) -> None | TrackInfo:
|
||||
"""Fetch a track by its Deezer ID or URL and return a
|
||||
TrackInfo object or None if the track is not found.
|
||||
"""Fetch a track by its Deezer ID or URL.
|
||||
|
||||
:param track_id: (Optional) Deezer ID or URL for the track. Either
|
||||
``track_id`` or ``track_data`` must be provided.
|
||||
:param track_data: (Optional) Simplified track object dict. May be
|
||||
provided instead of ``track_id`` to avoid unnecessary API calls.
|
||||
:return: TrackInfo object for track
|
||||
Returns a TrackInfo object or None if the track is not found.
|
||||
"""
|
||||
if not (deezer_id := self._get_id(track_id)):
|
||||
self._log.debug("Invalid Deezer track_id: {}", track_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue