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

Lower media weight if catalognum exists #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions beetsplug/originquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ def import_task_start(self, task, session):

# beets weighs media heavily, and will even prioritize a media match over an exact catalognum match.
# At the same time, media for uploaded music is often mislabeled (e.g., Enhanced CD and SACD are just
# grouped as CD). This does not make a good combination. As a workaround, remove the media from the
# item if we also have a catalognum.
# grouped as CD). This does not make a good combination. As a workaround, lower the weight for media
# if we also have a catalognum.
if item['media'] and item['catalognum']:
del item['media']
tag_compare['media']['active'] = False
config['match']['distance_weights']['media'] = .2