From 71a061d13c22b9f51ef260aa8869d529eef4d066 Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Wed, 13 May 2015 17:32:03 -0400 Subject: [PATCH] Properly implemented announcements. --- src/controller/buffersController.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index 15214e46..31404c62 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -448,9 +448,11 @@ class baseBufferController(bufferController): url=urls_list.get_string() if hasattr(urls_list, "destroy"): urls_list.destroy() 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: - return self.url(url) + return self.url(url,announce=False) elif utils.is_geocoded(tweet): return output.speak("Not implemented",True) else: