Skip to content

Commit

Permalink
Fix get_track_url not returning anything. Resolves #28
Browse files Browse the repository at this point in the history
  • Loading branch information
morguldir committed Mar 1, 2020
1 parent 224628d commit f21bd30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ def test_playlist_picture(session):

def test_get_track_url(session):
track = session.get_track(108043415)
session.get_track_url(track.id)
assert session.get_track_url(track.id) != None


def test_get_video_url(session):
video = session.get_video(108046194)
session.get_video_url(video.id)
assert session.get_video_url(video.id) != None


def test_load_session(session):
Expand Down
2 changes: 1 addition & 1 deletion tidalapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_media_url(self, track_id):
return r.json()['url']

def get_track_url(self, track_id):
self.get_media_url(track_id)
return self.get_media_url(track_id)

def get_video_url(self, video_id):
params = {
Expand Down

0 comments on commit f21bd30

Please sign in to comment.