Open Sheraff opened 2 years ago
https://github.com/Sheraff/soft-serve-tunes/commit/23bfe7ab44b0ec1723533570d47b5463d88bc34b
=> uses string distance to select result for spotify & audiodb (does not filter out, only used to select the best one)
https://github.com/Sheraff/soft-serve-tunes/commit/d964771255ce3f817389dc423614a6bf51943d89
=> lastfm name correction is checked by a string distance on track creation
Lastfm & acoustid results are validated by a string distance algorithm
similarStrings
to increase the certainty that they match the requested track.Where a better "result selection" is needed, there are
// TODO: use string distance
comments. Though, the proper way of selecting a result might not simply be string distance but something more along the lines of what is done w/ acoustid results.Potentially:
// TODO: can we do better