-
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
Add lastgenre plugin cli options to query explicit for albums and / or tracks. #3220
Conversation
Also fetch genres for single tracks via query.
Hi! This is a nice start, but doing the same actions to both albums and items matching the same query is likely to do a bunch of redundant work in most cases. For example, the query I think the right thing to do is to put this behind a command-line option: one that switches between album and item mode. As you'll see in most other plugin-provided commands, there's an |
Added the parser options, what do you think? |
Cool! This arrangement, however, does make it possible for albums and tracks to be enabled simultaneously. It would be nice if this were a proper switch: i.e., track and album mode negated one another, and only one could be active at a time. Also, can you please call the track mode "item" mode, for uniformity with other commands? Finally, could you please look into the Travis failures, add documentation, and write a quick changelog entry? |
Done |
Looking good! If you can bear with me, I have a few more suggestions:
|
- Cleaner implementation of mutual excursion of the command line arguments.
No problem, I'm happy if someone has an eye on code quality ;-) Now it works like this:
Also updated the doc. |
If this goes through, #3219 can also be closed. |
Awesome! Thank you for your persistent work on this. 🐟 Merged! |
Renamed to a more self-explanatory name even though it's an older PR. Since I'm working on something related to this feature, I might reference it and appreciate a better name. |
Also fetch genres for single tracks via query.