-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CmdlineArgs: Add --rescan-library
for rescanning on startup
#13661
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, though I'm interested why you think this is useful as a CLI option (as opposed to the menu button or the keyboard shortcut or the config option) in the first place.
I'm looking into making my track import workflow more scriptable and rescanning the library is one step towards that. My plan is to add an option for analyzing new tracks on startup in a future PR too, but since that will likely be more complicated both from an implementation perspective and perhaps more discussion-worthy, I've split out this PR (which was fortunately pretty trivial to implement since we already have the setting). |
so you conditionally (depending on whether mixxx got called from your script or yourself) want to rescan the library? Would it make more sense to have an overwrite for the config file so its not limited to this one setting? |
Yes, exactly
That's an interesting idea, hadn't thought of that. Feels a bit more convoluted from a usage perspective, but would definitely be more general and I guess for scripts the reduced discoverability would be fine. Haven't looked deeply enough into the config mechanism to find out how complicated that would be to do. |
probably not terribly as long as you don't need it it to do at runtime. The clang-tools have an option to overwrite the config as well as specific parts of the config (for example in clang-tidy via |
I've had a quick look at I feel like there's a fair bit of complexity involved to make this "non-surprising" and am wondering whether it's worth the effort. Any thoughts? |
Yeah, lets avoid that for now. We can re-evaluate once we introduce more flags. |
This adds a small convenience flag for rescanning the library on startup without changing the settings.