Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
library: Album() no longer supports the images attribute
Browse files Browse the repository at this point in the history
It should be replaced by `library.get_images(uris)`.
  • Loading branch information
jodal committed Nov 25, 2019
1 parent 51b58c0 commit 5ffda8c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mopidy_gmusic/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
album_to_ref,
artist_to_ref,
create_id,
get_images,
track_to_ref,
)

Expand Down Expand Up @@ -591,15 +590,13 @@ def _to_mopidy_album(self, song):
album_id = create_id(artist.name + name + date)

uri = "gmusic:album:" + album_id
images = get_images(song)
return Album(
uri=uri,
name=name,
artists=[artist],
num_tracks=song.get("totalTrackCount"),
num_discs=song.get("totalDiscCount"),
date=date,
images=images,
)

def _to_mopidy_artist(self, song):
Expand Down

0 comments on commit 5ffda8c

Please sign in to comment.