Skip to content

Commit

Permalink
reflect model changes in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Oct 10, 2023
1 parent 5b9be4f commit b984364
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ lyrics = api.get_lyrics(
)

# Print the lyrics
print(lyrics["syncedLyrics"])
print(lyrics.synced_lyrics or lyrics.plain_lyrics)

# Search for a lyrics
results = api.search_lyrics(
Expand All @@ -52,15 +52,13 @@ results = api.search_lyrics(

# Print the results
for result in results:
print(result["id"])
print(result["artistName"])
print(result["albumName"])
print(f"{result.artist_name} - {result.track_name} ({result.album_name})")

# Get lyrics by ID
lyrics = api.get_lyrics_by_id(lrclib_id=results[0]["id"])
lyrics = api.get_lyrics_by_id(lrclib_id=results[0].id)

# Print the lyrics
print(lyrics["syncedLyrics"] or lyrics["plainLyrics"])
print(lyrics.synced_lyrics or lyrics.plain_lyrics)
```

## Features in Development
Expand Down

0 comments on commit b984364

Please sign in to comment.