Search arguments not working #66
Comments
i can confirm this yewtube/mps_youtube/commands/search.py Lines 276 to 303 in 67e5be7
it just mean all option will be ignored and yewtube will do normal search there is possibility to create custom search but i have to dig deeper https://github.com/alexmercerind/youtube-search-python#search-with-a-filter-or-sort |
Thanks rachmadaniHaryono, If this is a TODO and its not going to be implemented for a while then maybe the below lines should be removed from the help so people do not try to use it. I spent more time than I would like to admit today trying to figure out what I was doing wrong :) yewtube/mps_youtube/helptext.py Lines 48 to 54 in 67e5be7
Should I make a pull request to remove these lines as it seems to be a simple (non-code) change. Would this be ok? |
that depend on @iamtalhaasghar there are more option
i am against option 1 because it will be added later my best recommendation is option 2 also it is not only help text but also this part yewtube/mps_youtube/commands/search.py Lines 14 to 17 in 67e5be7
it also show that there is need to unify help text and that argument parser |
Agree, 2 or 3 would be better options. Maybe something like this: Search Arguments: |
Issue
Search arguments don't seem to work. I would specifically like to use the --after argument
I am a git and python noob. I am sorry if the answer is right there and I did not see it, I am trying.
Example:
Searching for
/<some_topic> -l
or/<some_topic> --live
return the same results as/<come_topic>
.I was expecting that it would only return live streams. I have tried all other arguments as well (-d, -a, -c) all seem to ignore the arguments. I used --live in the above example as it does not require a value; so easy to replicate issue.
I have search the issues for yewtube (open and closed) but did not find anything obviously related to this.
Possible Answer
Looking at commands/search.py the section that seems to handle the arguments appears commented out. Not sure if this is the answer or if it has been re-implemented elsewhere. If this functionality has been removed then maybe the embedded help text
help search
menu should be updated?Environment
Fedora Silverblue 35 > Installed via toobox (fedora 35 image)
Installed yt using pipx
YewTube version 2.8.1
python 3.10.2
youtube-dl 2021-12-17
The text was updated successfully, but these errors were encountered: