Skip to content

Commit

Permalink
Use join_key arg in Discogs source plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Oct 30, 2022
1 parent 8a4f04b commit 708f0ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions beetsplug/discogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def get_album_info(self, result):
return None

artist, artist_id = MetadataSourcePlugin.get_artist(
[a.data for a in result.artists]
[a.data for a in result.artists],
join_key='join'
)
album = re.sub(r' +', ' ', result.title)
album_id = result.data['id']
Expand Down Expand Up @@ -566,7 +567,8 @@ def get_track_info(self, track, index, divisions):
track_id = None
medium, medium_index, _ = self.get_track_index(track['position'])
artist, artist_id = MetadataSourcePlugin.get_artist(
track.get('artists', [])
track.get('artists', []),
join_key='join'
)
length = self.get_track_length(track['duration'])
return TrackInfo(title=title, track_id=track_id, artist=artist,
Expand Down

0 comments on commit 708f0ba

Please sign in to comment.