Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: revisit YouTube Music track weighing logic #472

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

miraclx
Copy link
Owner

@miraclx miraclx commented Apr 5, 2023

In cases like apple_music:track:1208190370 where there's only one word in the track name, with all artists squashed into one entry, the odds of weighing the correct track is 50%, which is far under the cut-off of 70%

This patch rewrites that logic to stop presupposing either the track has more than one word, or there's more than one artist.

Now, we're embedding the album as well in there, taking the minimum odds of success to 66%, but we undercut by just a bit at 65%.

Issue originally derived from #395 (comment), #419.

@github-actions
Copy link

github-actions bot commented Apr 5, 2023


🐋 🤖

A docker image for this PR has been built!

docker pull freyrcli/freyrjs-git:pr-472
Base (master)
This Patch


What's this?

This docker image is a self-contained sandbox that includes all the patches made in this PR. Allowing others to easily use your patches without waiting for it to get merged and released officially.

For more context, see https://github.com/miraclx/freyr-js#docker-development.

@miraclx miraclx merged commit 4c3b21e into master Apr 5, 2023
@miraclx miraclx deleted the miraclx/revisit-ytmusic-track-weighing-logic branch April 5, 2023 23:49
@miraclx miraclx mentioned this pull request Jun 20, 2023
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.

None yet

1 participant