#33: geocode checkers, audio handlers (there's probably a much better way to do this).

This commit is contained in:
Bill Dengler 2015-05-12 12:01:19 -04:00
parent 8eb6d0c4cb
commit 1e6a784192

View File

@ -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()