Skip to content

Commit

Permalink
Replace None with empty string where necessary (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefKruszynski authored Jan 30, 2024
1 parent a236bad commit 38f1d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music_assistant/server/providers/tidal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ async def _parse_artist(self, artist_obj: TidalArtist, full_details: bool = Fals
async def _parse_album(self, album_obj: TidalAlbum, full_details: bool = False) -> Album:
"""Parse tidal album object to generic layout."""
name = album_obj.name
version = album_obj.version if album_obj.version is not None else None
version = album_obj.version or ""
album_id = album_obj.id
album = Album(
item_id=str(album_id),
Expand Down Expand Up @@ -606,7 +606,7 @@ async def _parse_track(
extra_init_kwargs: dict[str, Any] | None = None,
) -> Track | AlbumTrack | PlaylistTrack:
"""Parse tidal track object to generic layout."""
version = track_obj.version if track_obj.version is not None else None
version = track_obj.version or ""
track_id = str(track_obj.id)
if extra_init_kwargs is None:
extra_init_kwargs = {}
Expand Down

0 comments on commit 38f1d91

Please sign in to comment.