mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 08:32:06 +01:00
include artist when matching track by ID
This commit is contained in:
parent
9222b98706
commit
182bd96a38
1 changed files with 2 additions and 1 deletions
|
|
@ -288,8 +288,9 @@ def track_for_id(trackid):
|
|||
dictionary or None if no track is found.
|
||||
"""
|
||||
query = mbws.Query()
|
||||
inc = mbws.TrackIncludes(artist=True)
|
||||
try:
|
||||
track = _query_wrap(query.getTrackById, trackid)
|
||||
track = _query_wrap(query.getTrackById, trackid, inc)
|
||||
except (mbws.ResourceNotFoundError, mbws.RequestError):
|
||||
return None
|
||||
return track_dict(track)
|
||||
|
|
|
|||
Loading…
Reference in a new issue