From 73a069dbe26db73c4e4c922c3306166ff6e12bfa Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Wed, 13 May 2015 22:10:37 -0400 Subject: [PATCH] Implement fix for url mishandling, remove print statements for testing, fixed #35 --- src/controller/buffersController.py | 3 +-- src/sound.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index fa944d95..a1e0cc60 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -453,8 +453,7 @@ class baseBufferController(bufferController): return sound.URLPlayer.stop_audio(delete=True) output.speak("Opening media...",True) if sound.URLPlayer.is_playable(url=url,play=True,volume=self.session.settings["sound"]["volume"]) == False: - print "Opening",url,"in browser..." - return self.url(url,announce=False) + return webbrowser.open_new_tab(url) elif utils.is_geocoded(tweet): return output.speak("Not implemented",True) else: diff --git a/src/sound.py b/src/sound.py index bc8d0ac2..c39fa04f 100644 --- a/src/sound.py +++ b/src/sound.py @@ -142,7 +142,6 @@ class URLStream(object): return self.play(stream=stream,volume=volume,announce=False) return True except: - print "Exception." return False def stop_audio(self,delete=False): if hasattr(self, "stream") and self.stream.is_playing: