Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Sep 5, 2024
1 parent bc69e17 commit 579f8d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,9 +870,10 @@ def get_tracks_by_isrc(self, isrc: str) -> list[media.Track]:
params={
"filter[isrc]": isrc,
},
base_url="https://openapi.tidal.com/v2/").json()
base_url="https://openapi.tidal.com/v2/",
).json()

return [self.track(track['id']) for track in res['data']]
return [self.track(track["id"]) for track in res["data"]]
except requests.HTTPError:
log.warning("Wrong ISRC code '%s'", isrc)
raise
Expand All @@ -890,9 +891,10 @@ def get_albums_by_barcode(self, barcode: str) -> list[album.Album]:
params={
"filter[barcodeId]": barcode,
},
base_url="https://openapi.tidal.com/v2/").json()
base_url="https://openapi.tidal.com/v2/",
).json()

return [self.album(album['id']) for album in res['data']]
return [self.album(album["id"]) for album in res["data"]]
except HTTPError:
log.warning("Wrong barcode '%s'", barcode)
raise
Expand Down

0 comments on commit 579f8d0

Please sign in to comment.