AsyncPlaylist¶
- class deezer.asyncio.AsyncPlaylist(client, json)¶
Async playlist resource.
- id: int¶
- title: str¶
- description: str¶
- duration: int¶
- public: bool¶
- is_loved_track: bool¶
- collaborative: bool¶
- nb_tracks: int¶
- unseen_track_count: int¶
- fans: int¶
- link: str¶
- picture: str¶
- picture_small: str¶
- picture_medium: str¶
- picture_big: str¶
- picture_xl: str¶
- checksum: str¶
- async get_tracks(**kwargs)¶
Get tracks from a playlist.
- Return type:
- async get_fans(**kwargs)¶
Get fans from a playlist.
- Return type:
- async mark_seen()¶
Mark the playlist as seen.
- Return type:
bool
- async add_tracks(tracks)¶
Add tracks to a playlist.
- Parameters:
tracks (Iterable[int])
- Return type:
bool
- async delete_tracks(tracks)¶
Delete tracks from a playlist.
- Parameters:
tracks (Iterable[int])
- Return type:
bool
- async reorder_tracks(order)¶
Reorder the tracks of a playlist.
- Parameters:
order (Iterable[int])
- Return type:
bool