Skip to content

Add fuzzy matching fallback for better song matching #2

Description

@KaykCaputo

Description:

When transferring songs from YouTube Music to Spotify, the script may fail to find an exact match due to small differences in formatting (e.g., spelling variations, “feat.” tags). Adding fuzzy matching as a fallback can significantly improve match accuracy.

Tasks:

  • Review the current Spotify search / matching implementation.
  • Integrate a fuzzy matching library (e.g., thefuzz or similar).
  • Implement a fallback search strategy:
    • Try exact match first.
    • If exact match fails, compute fuzzy scores for top Spotify search results.
    • Select the best candidate or return multiple suggestions.
    • Write tests for edge cases such as spelling differences, “feat” variations, and long titles.
  • Update the README to document the new matching behavior.

Why this is beginner-friendly:

  • Introduces fuzzy matching, a widely used technique.
  • Provides a clear, isolated feature to implement.
  • Immediately improves the tool’s accuracy and user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions