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

Add support for releases with multiple versions of the same recording #908

Merged
merged 1 commit into from
Aug 22, 2014

Conversation

ruippeixotog
Copy link
Contributor

Fixes #230.

Theoretically it should also bring a performance benefit when syncing full albums, as finding the mappings is now linear-time in complexity. It probably won't cause a big effect, though.

@sampsyo sampsyo merged commit 7c19679 into beetbox:master Aug 22, 2014
sampsyo added a commit that referenced this pull request Aug 22, 2014
Add support for releases with multiple versions of the same recording
sampsyo added a commit that referenced this pull request Aug 22, 2014
Use a defaultdict for more idiomatic collection.
@sampsyo
Copy link
Member

sampsyo commented Aug 22, 2014

Awesome! Thanks for addressing this so quickly! 🚀

I made just one small change in the commit above to use a defaultdict for accumulating the per-MBID lists.

@ruippeixotog
Copy link
Contributor Author

No problem, it was an issue for me too and the fix was easy 😄

I'm not fluent in Python, I didn't know the existence of defaultdict. Way better that way!

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.

mbsync: Deal with albums that have multiple copies of the same recording
2 participants