-
Notifications
You must be signed in to change notification settings - Fork 22
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
Query on CLI option #94
Comments
Thanks for input, @mcrosson! Something like this seems doable but I can also see some pitfalls. Before I design a solution, I would love to hear some details on the issue you are facing.
|
My workflow is this:
The 'problem' is the run of
A way to achieve a non-destructive, partial update of the tracks managed by this plugin. Essentially what I'm doing in my above process for
This is the very reason I opened the ticket. Scanning through my library takes a very long time.
If named something like 'partial processing query' or similar I'd expect it to So long as I can execute a partial, non-destructive update, I can work with whatever default behavior and interactions you feel are best for the plugin. |
Thanks for the info, that’s very helpful.
Having the CLI query to select a subset of the alternative collection (i.e. Are you interested in contributing a PR for this? I’d be happy guide you through it! Additionally I would also like a look at the underlying problem that going through the whole library is slow. If that was solved we wouldn’t need the feature. To get a better idea about this could you measure the time |
Sounds good to me :)
I can help with testing but I'm not sure I'd be much help with writing the code. I've never worked with developing beets plugins and would likely need quite a bit of guidance. If you're willing to help me sort the fundamentals and point me in a good direction to start with the code, I can make an attempt.
My entire beets library is slow. Short of the main beets project making major improvements to the querying, it cannot be solved via this plugin. There are a few performance based items open in the main beets project that will likely help address some of this if/when they get implemented. My library is also additive, even if the performance problems are sorted 'today', I'd still run into them again in the future. I think adding the additional query cli argument, per the above, is the better solution both now and in the future.
hardware
software
storage use
beets library stats (note i run this plugin against the whole library)
alt update runtime
|
Wow 🤯 That’s terrible 😅
That’s good to know. So any effort to improve performance would be better spent on beets core than here.
That’s totally ok. I’m happy to get you started and give you some guidance along the way. To get started with development, take a look at the dev guide. From the project you can run As a first step I’d suggest adding a query option to the CLI parser ( The list of items (i.e. tracks) that should be processed is generated in I created a branch that implements a first test case for this feature. You may need to make some adjustments to it to make it work. (https://github.com/geigerzaehler/beets-alternatives/blob/cli-query-tests/test/cli_test.py#L435) If you get stuck, feel free to reach out to me. |
Thank you for the information. I'll dive in at my next opportunity. |
@mcrosson Are you still interested in implementing this? |
Unfortunately my health issues flared shortly after discussing the above with you and I've been unable to look at this at all. It'll likely be a long period before I could accomplish the code changes necessary. If someone else would like to implemented the changes, I'm willing to defer. I'm also ok if the ticket gets closed. |
I’m sorry to hear about your health issues @mcrosson. I hope you get better soon. I just wanted to follow up to see if you needed any help or had something in the works already. Because I may take a stab at this. So I’ll definitely keep this open. |
Would it be possible to expose the query option as part of the cli args for this plugin? I do a lot of batch processing and cross convert my entire library from flac -> compressed formats.
Having a cli option for the query would let me more easily process my batches without having to remember to update my config on each run or waiting for the plugin to go through my entire beets library.
The text was updated successfully, but these errors were encountered: