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

play internet radio fails #6

Open
JarbasAI opened this Issue Jan 19, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@JarbasAI
Copy link
Contributor

JarbasAI commented Jan 19, 2018

02:21:10.683 - mycroft.skills.core:wrapper:663 - ERROR - An error occurred while processing a request in InternetRadioSkill
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/skills/core.py", line 639, in wrapper
handler(message)
File "/opt/mycroft/skills/skill-internet-radio/init.py", line 316, in handle_intent
self.audioservice.play(self.settings['station_url'])
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/skills/settings.py", line 160, in getitem
return super(SkillSettings, self).getitem(key)
KeyError: 'station_url'

this is in a Mark1, specifying the station name works

internet radio -> an error occured
rock radio -> works

suggestion:

use self.settings.get("station_url", "default url")

it seems station_url is missing from websettings, putting the field there should auto populate this in the settings aswell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment