Implement fix for url mishandling, remove print statements for testing, fixed #35

This commit is contained in:
Bill Dengler 2015-05-13 22:10:37 -04:00
parent 81a9a36519
commit 73a069dbe2
2 changed files with 1 additions and 3 deletions

View File

@ -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:

View File

@ -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: