mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Implement fix for url mishandling, remove print statements for testing, fixed #35
This commit is contained in:
parent
81a9a36519
commit
73a069dbe2
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user