This commit is contained in:
Stéphane Bruckert 2025-05-22 19:26:27 +01:00
parent d9c9e98d65
commit 67dc43924e

View File

@ -1037,7 +1037,7 @@ class Spotify:
): ):
""" This function is no longer in use, please use the recommended function in the warning! """ This function is no longer in use, please use the recommended function in the warning!
Removes all occurrences of the given tracks from the given playlist Removes specific occurrences of the given tracks from the given playlist
.. deprecated:: .. deprecated::
This endpoint has been removed by Spotify and is no longer available. This endpoint has been removed by Spotify and is no longer available.
@ -1053,8 +1053,8 @@ class Spotify:
- snapshot_id - optional id of the playlist snapshot - snapshot_id - optional id of the playlist snapshot
""" """
warnings.warn( warnings.warn(
"You should use `playlist_remove_specific_occurrences_of_items" "You're using `user_playlist_remove_specific_occurrences_of_tracks(...)`, "
"(playlist_id, tracks)` instead", "which is marked as deprecated by Spotify.",
DeprecationWarning, DeprecationWarning,
) )
plid = self._get_id("playlist", playlist_id) plid = self._get_id("playlist", playlist_id)