Skip to content

Commit

Permalink
[musixmatch] Fix out of range bug #12
Browse files Browse the repository at this point in the history
  • Loading branch information
moehmeni committed Aug 18, 2023
1 parent b3add2d commit 8eaab33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncedlyrics/providers/musixmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ def get_lrc(self, search_term: str) -> Optional[str]:
)
body = r.json()["message"]["body"]
tracks = body["track_list"]
if not tracks:
return
return self.get_lrc_by_id(tracks[0]["track"]["track_id"])

0 comments on commit 8eaab33

Please sign in to comment.