From d173dd0cd0f7e57d9e865501351a6ffc11c65fab Mon Sep 17 00:00:00 2001 From: ugomeguerditchian Date: Wed, 25 Oct 2023 19:07:31 +0200 Subject: [PATCH] fixed remove url for tracks (and certainly video but i can't test) --- tidalapi/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tidalapi/user.py b/tidalapi/user.py index 566b25c..856f74a 100644 --- a/tidalapi/user.py +++ b/tidalapi/user.py @@ -277,7 +277,7 @@ def remove_track(self, track_id: str) -> bool: :param track_id: TIDAL's identifier of the track. :return: A boolean indicating whether the request was successful or not. """ - return self.requests.request("DELETE", f"{self.base_url}tracks/{track_id}").ok + return self.requests.request("DELETE", f"{self.base_url}/tracks/{track_id}").ok def remove_video(self, video_id: str) -> bool: """Removes a video from the users favorites. @@ -285,7 +285,7 @@ def remove_video(self, video_id: str) -> bool: :param video_id: TIDAL's identifier of the video. :return: A boolean indicating whether the request was successful or not. """ - return self.requests.request("DELETE", f"{self.base_url}videos/{video_id}").ok + return self.requests.request("DELETE", f"{self.base_url}/videos/{video_id}").ok def artists(self, limit: Optional[int] = None, offset: int = 0) -> List["Artist"]: """Get the users favorite artists.