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
Merge #548 and #552 #553
Merge #548 and #552 #553
Conversation
Search duration
# Conflicts: # mps_youtube/commands/search.py # mps_youtube/helptext.py
Alright. Should be working now, with the new syntax. Note: For invoking from the command line, you'll need to surround the search with quotes like: |
I found an issue with this. If you try a command like I don't know if there is a way to change that behavior with Edit: It looks like |
Right. I also forgot about passing on extra args with, kwargs, but I'm not gunna do that, for the time being. I'll try surrounding the parse with a try/except |
Made some changes and really tried to beat it up this time. One of the last things I tested with was |
videoDuration = args.duration if args.duration else 'any' | ||
after = args.after | ||
term = ' '.join(args.search) | ||
except SystemExit as e: #<------ argsparse calls exit() |
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.
Oh, I didn't know that sys.exit()
triggers a catchable exception. Nice!
Closes #548 and #552