-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Bugfix/skills/browser #114
base: develop
Are you sure you want to change the base?
Conversation
added error-message if no results were found (missing url) undid test-format for requests
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.
Looks good to me!
But could you please change the settings back to the default settings and could you change line 90 to the same as line 97 so that we have consistent error handling?
Would also directly show the user if they pronounced it wrong or so :)
Otherwise thanks for fixing!
Sure, ill get on it the next days. |
@11Tuvork28
I'm actually not quite sure what do you mean. It might not be best practice to intentionally throw exceptions, however if i just debug/error-log into the console we don't have JARVIS output (meaning no voice respond to your input). Or do you want something like:
and completely avoid every exception? I intentionally tried to keep the error logging as it was before (besides the ':', removed them already) that's the reason i went with trowing a custom Exception-Message: |
Yeah sorry should have clarified that, my bad!
So basically what you already had in mind. |
Hi,
as discussed in #112, I reworked the open_in_youtube-skill.
Its still a requests.get without using any api or ned of any api-key.
Instead of using bs4, i regex-search for the javascript initialization-data, transform the json-string and use glom to extract the deeply nested video url as well as video title.
Other changes:
if reg_ex
so Jarvis will not silently fail/get "stuck" with theINFO - Executing skill open_in_youtube
-message if one just say 'play', cause it looks like a freeze