Merge pull request #204 from uwulily/pr/imageFix

Fixed an error that occurred when downloading some playlists from TIDAL
This commit is contained in:
Nathan Thomas 2021-10-19 11:01:50 -07:00 committed by GitHub
commit fc9c2e675a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1784,7 +1784,7 @@ class Playlist(Tracklist, Media):
elif self.client.source == "tidal":
self.name = self.meta["title"]
self.image = tidal_cover_url(self.meta["image"], 640)
self.image = tidal_cover_url(self.meta["image"] or self.meta['squareImage'], 640)
self.creator = safe_get(self.meta, "creator", "name", default="TIDAL")
tracklist = self.meta["tracks"]