Properly implemented announcements.

This commit is contained in:
Bill Dengler 2015-05-13 17:32:03 -04:00
parent 7f6cf8d30a
commit 71a061d13c

View File

@ -448,9 +448,11 @@ class baseBufferController(bufferController):
url=urls_list.get_string() url=urls_list.get_string()
if hasattr(urls_list, "destroy"): urls_list.destroy() if hasattr(urls_list, "destroy"): urls_list.destroy()
if url != None: if url != None:
sound.URLPlayer.stop_audio() if hasattr(self.URLPlayer,'stream'):
return sound.URLPlayer.stop_audio()
output.speak("Opening media...",True)
if sound.URLPlayer.is_playable(url=url,play=True) == False: if sound.URLPlayer.is_playable(url=url,play=True) == False:
return self.url(url) return self.url(url,announce=False)
elif utils.is_geocoded(tweet): elif utils.is_geocoded(tweet):
return output.speak("Not implemented",True) return output.speak("Not implemented",True)
else: else: