-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
import: use filename sorting order information #2738
Comments
That's a great summary of a specific situation! It might be useful to take a look at the |
Well, in fact I already use
|
Aha! I would put my money on the former. It would be worthwhile to do some investigation—it seems like extending that plugin is probably the right way to go. |
Ok, I fixed the I've tested it in the scenario I described in my first message and it works as intended: i.e. I can enter a manual search and choose the best candidate, but now beets will remember track numbers discovered by the fromfilename plugin, so it won't make mistakes by arbitrarily swapping tracks with similar length. Notes:
|
For the records: please remember that everything discussed so far only applies to files that miss the "title" tag: the If your files contain garbage (title) tags and you'd like to override the garbage with the information inferred from the file name, at the moment the only option is to delete the title tag using some other tool before importing the file (beets' |
Yes, good point! It would be interesting to think about alternatives, but it's not 100% clear how this should work. For example, you could imagine a new config option for the |
Problem
Sometimes when I import an album beets correctly identifies all tracks except for a couple that get swapped by mistake, I guess because they have similar length.
The import scenario where this happens is quite special:
In this scenario, I guess all the information that beets has is:
The only way I can explain the swapping error is that currently beets only uses 1. and 2. to match files with tracks, and files/tracks with similar length can be swapped by mistake. If this is correct, I'd like beets to also use 3., i.e. the filename sorting, when it can be helpful to avoid swapping tracks.
I'm not sure what is the best way to implement this:
A command line option to
import
could be added to force beets to use filename sorting order instead of the default logic for matching tracks; so I would use that option in a scenario like the one above, and use the default logic when i run import on directories containing "random" filesThe default matching logic could be extended to also use the filename sorting order "when in doubt" (e.g. in choosing between similar tracks), though I'm not sure how difficult it is
The text was updated successfully, but these errors were encountered: