Fixed an AttributeError in URLSoundPlayer

This commit is contained in:
Manuel Cortez 2015-06-15 04:59:23 -05:00
parent cbd9718e5f
commit 63d6fa62c4

View File

@ -83,8 +83,6 @@ class bufferController(object):
self.session.sound.play("volume_changed.ogg") self.session.sound.play("volume_changed.ogg")
def interact(self): def interact(self):
if hasattr(sound.URLPlayer,'stream'):
return sound.URLPlayer.stop_audio(delete=True)
tweet = self.get_tweet() tweet = self.get_tweet()
url=None url=None
urls = utils.find_urls(tweet) urls = utils.find_urls(tweet)
@ -264,7 +262,7 @@ class baseBufferController(bufferController):
tweet = self.session.twitter.twitter.show_status(id=id) tweet = self.session.twitter.twitter.show_status(id=id)
except TwythonError as e: except TwythonError as e:
utils.twitter_error(e) utils.twitter_error(e)
continue return
l = tweets.is_long(tweet) l = tweets.is_long(tweet)
if l == False: if l == False:
tweetsList.append(tweet) tweetsList.append(tweet)