linsomniac / spotify_to_ytmusic

Copy playlists and liked music from Spotify to YTMusic
Creative Commons Zero v1.0 Universal
2.17k stars 139 forks source link

Curious match result for Blue Mile #100

Open edbaunton opened 3 months ago

edbaunton commented 3 months ago

Thank you for creating this fantastic tool, it works amazingly well. I got only one mismatch when importing my library and I did a little bit of digging but couldn't immediately see why it didn't work:

Spotify:   Blue Mile - Of The Trees - Blue Mile
  Youtube: Rain Sounds: 2 Hour Relaxing Rain Shower - Calmsound - {'name': 'Relaxing Nature Sounds: 24 Hours of Exquisite Nature Sounds for Deep Sleep, Study, Meditation and Mindfulness', 'id': 'MPREb_xSO0uQe2Mom'}

The track in question is: https://open.spotify.com/track/5EIyuLTiZwAmmlsqxdLJC0?si=f1c3738c217c4656

CY83R-3X71NC710N commented 2 months ago

You could try to experiment with various algorithm results. You can do this by using the settings tab on the GUI or you could do this in terminal using: --algo [0,1,2] selecting one of the numbers to use with the command

Here is some information on what the various algorithms do: If yt_search_algo is 0, it simply returns the first song result.

If yt_search_algo is 1, it iterates over the song results and returns the first song that matches the track name, artist name, and album name exactly. If it can't find a match, it raises a ValueError.

If yt_search_algo is 2, it performs a fuzzy match. It removes everything in brackets in the song title and checks for a match with the track name, artist name, and album name. If it can't find a match, it then searches for videos with the track name and artist name. If it still can't find a match, it raises a ValueError.

Therefore, the most accurate for you would be option 1 or 0, however, I'm assuming that you have already tried option 0 so try option 1 and then if all else fails, try option 2 and see if any of the algorithms fix the issue.