Skip to content

refactor(music): move the song matcher out of the lyrics package - #2625

Merged
A-EDev merged 2 commits into
mainfrom
refactor/song-matching
Dec 5, 2026
Merged

A-EDev merged 2 commits into
mainfrom
refactor/song-matching

Conversation

@A-EDev

@A-EDev A-EDev commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Moves the title and artist matcher from data/lyrics/LyricsMatching.kt to data/music/match/SongMatching.kt so music features can use it. Lyrics search queries and scores are unchanged.
  • Adds YtMusicMatcher.findRecording: a match needs the artist, the same version tags (live, remix, remaster) and a length within 3 s; the album breaks ties. A failed search comes back as a failure. Existing callers of find are unchanged.

Related issue

Part of #1553

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

Test device and Android version: Android emulator, API 37 phone image (1080x2400)

Screenshots or recordings

Risk and compatibility

No preference, database or playback change.

  • The change does not introduce secrets, private data, or unexpected telemetry.
  • New user-facing text uses Android string resources.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
  • Breaking changes and upgrade steps are clearly documented.

@A-EDev
A-EDev force-pushed the refactor/song-matching branch from 55ba0b0 to 74b3c34 Compare December 5, 2026 15:54
@A-EDev
A-EDev merged commit 5cad788 into main Dec 5, 2026
8 checks passed
@A-EDev
A-EDev deleted the refactor/song-matching branch December 5, 2026 16:30
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.

1 participant