Skip to content

Commit

Permalink
playlist.popularity as NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Linde committed Oct 23, 2023
1 parent af53fc7 commit aff460f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_playlist(session):
)
assert playlist.type == "ARTIST"
assert playlist.public is True
assert playlist.popularity == 0
assert playlist.popularity is None
assert len(playlist.promoted_artists) == 4

creator = playlist.creator
Expand All @@ -69,7 +69,7 @@ def test_updated_playlist(session):
)
assert playlist.type == "USER"
assert playlist.public is False
assert playlist.popularity == 0
assert playlist.popularity is None
assert playlist.promoted_artists is None

creator = playlist.creator
Expand Down
2 changes: 1 addition & 1 deletion tidalapi/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Playlist:
created: Optional[datetime] = None
type = None
public: Optional[bool] = False
popularity: Optional[int] = -1
popularity: Optional[int] = None
promoted_artists: Optional[List["Artist"]] = None
last_item_added_at: Optional[datetime] = None
picture: Optional[str] = None
Expand Down

0 comments on commit aff460f

Please sign in to comment.