mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Fixed an AttributeError in URLSoundPlayer
This commit is contained in:
parent
cbd9718e5f
commit
63d6fa62c4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user