tranxuanthang / lrclib

LRCLIB server written in Rust with Axum and SQLite3 database
https://lrclib.net
MIT License
85 stars 0 forks source link

lrclib: add parameter for duration difference #1

Open koehntopp opened 1 month ago

koehntopp commented 1 month ago

Can we add a parameter to the API to allow for different duration tolerance?

I have some Vinyl rips which can have up to 5 seconds difference in length, and I'd like to be able to still get the lyrics.

Let me refine the issue: It's not just Vinyl, Downloads from Qobuz also may differ more than 2 seconds:

image

image

tranxuanthang commented 1 month ago

I'm sorry that I can't reply to you sooner.

If duration difference is not an issue, is search API a good fit for your use case? For example:

GET https://lrclib.net/api/search?track_name=22&artist_name=Taylor+Swift&album_name=Red