From 6c47dd2fa9db344af3003184a2e0d1b6526fc5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 14 Oct 2015 17:07:30 -0500 Subject: [PATCH] Some fixes for URL Player --- src/sound.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/sound.py b/src/sound.py index fc41ef8c..6167c1b8 100644 --- a/src/sound.py +++ b/src/sound.py @@ -129,24 +129,7 @@ class URLStream(object): self.stream.volume = float(volume) self.stream.play() log.debug("played") - call_threaded(self.delete_when_done) - - def is_playable(self, url,play=False,volume=1.0): - try: - log.debug("Checking URL playability...") - self.prepare(url) - if self.prepared == True: - stream=sound_lib.stream.URLStream(url=self.url) - if play: - return self.play(stream=stream,volume=volume,announce=False) - return True - except: - return False - - def delete_when_done(self): - while hasattr(self,'stream') and self.stream.is_playing: - pass - del self.stream +# call_threaded(self.delete_when_done) def stop_audio(self,delete=False): if hasattr(self, "stream"):