mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-12-03 07:53:13 -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)
|
return sound.URLPlayer.stop_audio(delete=True)
|
||||||
output.speak("Opening media...",True)
|
output.speak("Opening media...",True)
|
||||||
if sound.URLPlayer.is_playable(url=url,play=True,volume=self.session.settings["sound"]["volume"]) == False:
|
if sound.URLPlayer.is_playable(url=url,play=True,volume=self.session.settings["sound"]["volume"]) == False:
|
||||||
print "Opening",url,"in browser..."
|
return webbrowser.open_new_tab(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:
|
||||||
|
@ -142,7 +142,6 @@ class URLStream(object):
|
|||||||
return self.play(stream=stream,volume=volume,announce=False)
|
return self.play(stream=stream,volume=volume,announce=False)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
print "Exception."
|
|
||||||
return False
|
return False
|
||||||
def stop_audio(self,delete=False):
|
def stop_audio(self,delete=False):
|
||||||
if hasattr(self, "stream") and self.stream.is_playing:
|
if hasattr(self, "stream") and self.stream.is_playing:
|
||||||
|
Loading…
Reference in New Issue
Block a user