sampsyo/beets — pull request #13 by laarmen (2011-11-22 13:07:31+00:00)
Title: Feature/incomplete albums

With this series of patches, beets take into account the fact that sometimes, we do not have the whole album but only some songs — the reasons can vary, in my case I generally remove the tracks that contain only dialogs.

The first two patches modify the distance and ordering of autotagging, and come with the appropriate tests. The last one simply enables this feature in the import.

The only problem there is is for the plugin interface, specifically the album_distance call.
I could either provide the whole data which would probably break explicitly every plugin that implement that call when dealing with the missing tracks (None dereferencing), or purge the data from the faulty entries, thus changing the indexing of the tracks in the canonical informations. I chose the latter, given that it would probably affect way less plugins, but the breakage sadly occurs silently in that case.