-
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
Incremental import for singletons #1441
Comments
Yes! This would be great to add. In fact, it looks like this is halfway implemented: |
Eh... I must admit, it's already working perfectly 😳 I stumbled over this behaviour while using my autosingleton plugin which didn't respect the incremental setting. After I fixed my plugin, everything is fine. No, wait! There's something strange: While digging through the code and inspecting the |
OK, cool—I'm glad this is working. That's intentional. The incremental mode needs to detect already-imported files before resolving the match and adding to the library—we need to catch them on the way in, rather than on the way out of the import process. (The ordinary duplicate detection stuff plays that role.) Recall that incremental mode tracks the full paths—which is the best we can do. There's no more reliable way to track moved but identical files short of storing checksums. Your idea about importing files that are not already in the library sounds good. Sort of the opposite of |
Hi!
I just found out that the incremental import only works for directories, hence albums. Do you see a chance to enable this feature for singletons (created using the
-s
command line option for example)?I had a short look at the code. Wouldn't it enough to store the file names of imported singletons beside the directories (and check them while importing, of course)? Do I overlook something why this isn't possible?
My use case is: The music library is already organised. I want to use beets to build a database and correct some tags and/or file/folder names. This happens 'in place'. Every now and than, I add an album or a singleton. The files are added directly into the library, so there is no special 'incoming' folder. To import them into beets, I run
beet import -i <library root>
. All already imported directories are skipped, but singletons are imported again every time.The text was updated successfully, but these errors were encountered: