mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-25 14:25:50 +03:00
[GH-ISSUE #84] [Feature Request] Improve Search Filtering & Parameters #71
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agenbite on GitHub (Sep 22, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/84
Originally assigned to: @Googolplexed0 on GitHub.
Related Problem/Issue
The search interface is useful, but if one knows that is looking for an album, it'd be nice to have a -sA flag which filters the output to leave only albums.
Ideal Solution
Ideally, there would be a --albums flag that would instruct zotify to ouput only albums after a search.
Considered Alternatives
The alternative today is to scroll up and look for the "Albums" section. Not a big deal, I agree, but still. ^^
Additional context
Search could actually be improved in other ways too: number of results, for instance.
Thanks for this fork!! <3
@Googolplexed0 commented on GitHub (Oct 1, 2025):
This has already been implemented (see #66).
Honestly, it would be a bit overly-verbose to add a new flag for each search filter. It would also be very confusing with the already-existing mode system, since
-ameans Followed Artists and would not be an alias for--albumslike one might expect.There already exists some level of search options/filter/specificity, but it seems poorly documented. I will do some investigation on what already exists, update the README with a new section, and then decide how to proceed from there.
@agenbite commented on GitHub (Oct 1, 2025):
On 01/10/2025, 04:03, Googolplexed wrote:
Cool, thanks!
Nice, I'll wait for that README update! :) Thanks again!
@Googolplexed0 commented on GitHub (Oct 9, 2025):
Updated README in
85d3acffc8. See the subsectionSearch Query Formattingfor more details. I may want improve the filtering system later, but at least the current implementation is actually explained. I will close this issue for now but will reopen for discussion if I decide a rework is necessary.@agenbite commented on GitHub (Oct 9, 2025):
Cooool! <3 If only I could try it... I've been bitten by #86... :(
EDIT: of course I can try this, since the filtering is previous to actually downloading. I did (after reinstalling), and I can't seem to make it work. I tried
zotify -s wilco -t albumand I still get the full listing with playlists and tracks and artists. Also tried-l 5and it seems the-lflag collides with--liked. Am I doing it wrong?@Googolplexed0 commented on GitHub (Oct 18, 2025):
I honestly don't remember if I tested it or not, and if I did, whether it worked. I mainly just read through the code and figured out how it parsed the search string. It didn't feel well-written to me. I can come back soon and give it another look.
@Googolplexed0 commented on GitHub (Oct 19, 2025):
Completely rewrote the system for v0.10.21 and tested it myself. It now works and has a few extra features. There is a potential for more changes later but how it's written should make it easily extensible. Please leave a comment and reopen this issue if there is something you would like changed/improved.
@agenbite commented on GitHub (Oct 20, 2025):
Oh, nice!! However, I tried and the parsing of the arguments seems broken... If I try
zotify -s whateverit works as expected, but if I tryzotify -s whatever /t albumI get an error ("zotify: error: argument urls: not allowed with argument -s/--search"). I also triedzotify whatever /t albumand I get an empty response (zotify returns after login). Unfortunately, this empty response happens too withzotify whatever. :-?@Googolplexed0 commented on GitHub (Oct 28, 2025):
This definitely should not happen. I just fixed a bug where searches wouldn't display if you only queried one type of item. Update to v0.10.23 and double check that this should work now. :)
If I searched
whatever /t album(before I just patched the bug), I got### NO RESULTS FOUND - EXITING... ###, but not an error. What version of Python and the argparse package do you have installed?@agenbite commented on GitHub (Oct 28, 2025):
I updated (with
pipx install -f git+https://github.com/Googolplexed0/zotify.git@efficient-api) and I see no change, so something is odd. My python version is 3.13.8 and argparse's is 1.1. I'm on debian testing.I tried deleting the executable and reinstalling, but I see no change. :-?