Skip to content

Commit

Permalink
[Deezer] Fix sync album if no cover image (#863)
Browse files Browse the repository at this point in the history
* Fix sync album if no cover image

* Update deezer-python version
  • Loading branch information
arctixdev authored Oct 27, 2023
1 parent a0edf70 commit aeb1147
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions music_assistant/server/providers/deezer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class DeezerProvider(MusicProvider): # pylint: disable=W0223
client: deezer.Client
gw_client: GWClient
creds: DeezerCredentials
user: deezer.resources.User
user: deezer.User

async def handle_setup(self) -> None:
"""Set up the Deezer provider."""
Expand Down Expand Up @@ -485,7 +485,7 @@ def parse_metadata_track(self, track: deezer.Track) -> MediaItemMetadata:
metadata.popularity = track.rank
if hasattr(track, "release_date"):
metadata.release_date = track.release_date
if hasattr(track, "album"):
if hasattr(track, "album") and hasattr(track.album, "cover_big"):
metadata.images = [
MediaItemImage(
type=ImageType.THUMB,
Expand Down
2 changes: 1 addition & 1 deletion music_assistant/server/providers/deezer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"description": "Support for the Deezer streaming provider in Music Assistant.",
"codeowners": ["@Un10ck3d", "@micha91"],
"documentation": "https://github.com/orgs/music-assistant/discussions/1245",
"requirements": ["git+https://github.com/music-assistant/[email protected].1", "pycryptodome==3.18.0"],
"requirements": ["git+https://github.com/music-assistant/[email protected].2", "pycryptodome==3.18.0"],
"multi_instance": true
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cryptography==41.0.3
faust-cchardet>=2.1.18
git+https://github.com/MarvinSchenkel/pytube.git
git+https://github.com/gieljnssns/python-radios.git@main
git+https://github.com/music-assistant/[email protected].1
git+https://github.com/music-assistant/[email protected].2
ifaddr==0.2.0
mashumaro==3.9
memory-tempfile==2.2.3
Expand Down

0 comments on commit aeb1147

Please sign in to comment.