Skip to content

Commit

Permalink
Merge pull request #210 from ugomeguerditchian/master
Browse files Browse the repository at this point in the history
fixed remove url for tracks and videos
  • Loading branch information
tehkillerbee authored Nov 27, 2023
2 parents cbe8653 + d173dd0 commit 103e3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidalapi/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ 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.
: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.
Expand Down

0 comments on commit 103e3c3

Please sign in to comment.