Skip to content

Comments

improve: spotify source parsing and track resolution#111

Merged
1Lucas1apk merged 1 commit intoPerformanC:v3from
ToddyTheNoobDud:v3
Nov 3, 2025
Merged

improve: spotify source parsing and track resolution#111
1Lucas1apk merged 1 commit intoPerformanC:v3from
ToddyTheNoobDud:v3

Conversation

@ToddyTheNoobDud
Copy link
Collaborator

Changes

Implemented Levenshtein distance algorithm for accurate track matching, fixed explicit content handling, added automatic token refresh, and refactored code structure for better maintainability and performance.

Track selection now considers duration difference (50%), title similarity (30%), and author similarity (20%) instead of duration alone, which makes it more accurate

Why

This commit fixes "No suitable alternative stream found" for some tracks, prevents token expirations (5 minutes per token, after it gets expired another one is created/refreshed), and improves the match accuracy for searching.

Checkmarks

  • [ X ] The modified endpoints have been tested.
  • [ X ] Used the same indentation as the rest of the project.
  • [ X ] Still compatible with LavaLink clients.

Additional information

Signed-off-by: toddynnn <86982643+ToddyTheNoobDud@users.noreply.github.com>
@1Lucas1apk 1Lucas1apk merged commit abcad6b into PerformanC:v3 Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants