-
Notifications
You must be signed in to change notification settings - Fork 12
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
refine autotagger query #68
Conversation
Pull Request Test Coverage Report for Build 11106940604Details
💛 - Coveralls |
I found that using both a combination of artist and track as query further improves accuracy. |
I've just tested it myself and I completely see why it's required! As far as I could see, we have an issue with Bandcamp search being too narrow-minded, when we specify the If we search for On the other hand, search on MusicBrainz and Discogs is more flexible: you can search albums using one of the track titles and they will most likely find the album you're looking for, it's just that it will most likely have a low confidence score, as you mentioned. Given your change, I see how using track title when album is not present improves the search! I reckon we can improve it even further: as I mentioned above, Bandcamp takes the What if we don't specify this parameter at all? |
Yup that's exactly what I did in the latest change 3886d7b (the type in the search dict is just left as an emtpy string). I also included the artist in the query string as well because for some reason that also worked better. It simply replicates what happens when you use the beetcamp cli with a plain text query which at least for me worked a lot better. |
rebased to include #69 and logged changes. Should be good to go. |
GitHub is confused about the rebase - probably because you need to update the I checked the diff locally and I can see that all dependencies are updated. You want to only update beets in this case, using |
Sorry I took a while there was an issue with jellyfish not installing correctly with the newest version of poetry (1.8.4). |
Still the same issue. I would suggest either interactive rebase or starting a clean branch and cherry-picking the relevant commits, see below: git checkout main
# create clean temporary branch
git checkout -b fx-autotagger-query-temp
# cherry-pick the relevant commits
git cherry-pick ':/handle empty album str'
git cherry-pick ':/add: further improve query'
git cherry-pick ':/add: log changes'
# validate the changes are as expected
git diff main
# reset this branch to your new clean branch
git checkout fx-autotagger-query
git reset --hard fx-autotagger-query-temp
# force push it
git push --force
# clean up
git branch --delete fx-autotagger-query-temp |
7dd6c6a
to
c8426e5
Compare
Thank you for posting the steps, that really helped! |
With the changes you described there was a merge conflict in CHANGELOG.md as in the meantime there was a release. However after resolving this I saw that the resulting merge also affected the version number in the poetry config and a lot of changes in the log. Is it supposed to be like that or did I mess something up again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thank you!
Ah that's a relief! |
Just found that my alterations to the search (#68) break if the artist is empty (bandcamp search can't handle ' - title' syntax in search). This fixes the issue. I did not include a changelog entry as this feature has not been released yet and is already present in the log.
Simple suggestion to make the autotagger use the track title if no album title is present in the import.
The default behavior remains unchanged but in my testing this made the results more accurate if very sparse metadata is used.