Skip to content

Commit

Permalink
Merge pull request #16 from eadmaster/patch-1
Browse files Browse the repository at this point in the history
[lrclib] fix AttributeError
  • Loading branch information
moehmeni authored Oct 24, 2023
2 parents ab744c9 + b0a83d1 commit 60549b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncedlyrics/providers/lrclib.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_lrc(self, search_term: str) -> Optional[str]:
# Getting the first track that its `syncedLyrics` is not empty
_id = None
for track in tracks:
if track.get("syncedLyrics", "").strip():
if (track.get("syncedLyrics", "") or "").strip():
_id = str(track["id"])
break
if not _id:
Expand Down

0 comments on commit 60549b0

Please sign in to comment.