We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b448ebd + a8fa8bf commit fc593b6Copy full SHA for fc593b6
tidalapi/session.py
@@ -956,7 +956,13 @@ def get_tracks_by_isrc(self, isrc: str) -> list[media.Track]:
956
base_url=self.config.openapi_v2_location,
957
).json()
958
if res["data"]:
959
- return [self.track(tr["id"]) for tr in res["data"]]
+ tracks = []
960
+ for tr in res["data"]:
961
+ try:
962
+ tracks.append(self.track(tr["id"]))
963
+ except ObjectNotFound:
964
+ continue
965
+ return tracks
966
else:
967
log.warning("No matching tracks found for ISRC '%s'", isrc)
968
raise ObjectNotFound
0 commit comments