Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshankman authored Sep 14, 2023
1 parent 5059a59 commit 8e68627
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Once completed, all songs will be migrated into the Playlist and you'll be left

## Search Pattern

First, we search for the song by constraining it to the exact album and artist found in the track data.
I use a naive two-tier search pattern.

If that produces no results, we lax the constraints and search for the exact song from the eact artist on any of their albums.
First, we search for the song by constraining it to the exact album and artist found in the track data. If there are typos obviously this will have issues.

After that, we fail to migrate the song, as laxing the constraints further gets messy and produces false positives (covers, wrong song, etc). Those songs have their track data written to `notFoundTracks.json`, allowing you to then manually go find those songs and add them to your playlist yourself.
Then we try a second time we search for song and constrain by only the artist name, meaning any album version will suffice.

After that, we fail to migrate the song, as laxing the constraints further gets produces too many false positives (covers, wrong song, etc). Those songs have their track data written to `notFoundTracks.json`, allowing you to then manually go find those songs and add them to your playlist yourself.

0 comments on commit 8e68627

Please sign in to comment.