mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
#33: geocode checkers, audio handlers (there's probably a much better way to do this).
This commit is contained in:
parent
8eb6d0c4cb
commit
1e6a784192
@ -437,9 +437,11 @@ class baseBufferController(bufferController):
|
||||
print "Interact method invoked"
|
||||
tweet = self.get_tweet()
|
||||
urls = utils.find_urls(tweet)
|
||||
#handle audio-only (no weblinks) tweets.
|
||||
if len(urls) == 1 and utils.is_audio(tweet):
|
||||
#handle audio tweets.
|
||||
if utils.is_audio(tweet):
|
||||
return self.audio()
|
||||
elif utils.is_geocoded(tweet):
|
||||
output.speak("Not implemented",True)
|
||||
else:
|
||||
return self.url()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user