mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
Use get_tweet in ocr function. Fixes #105
This commit is contained in:
@@ -1527,7 +1527,7 @@ class Controller(object):
|
||||
if hasattr(buffer, "get_right_tweet") == False:
|
||||
output.speak(_(u"Invalid buffer"))
|
||||
return
|
||||
tweet = buffer.get_right_tweet()
|
||||
tweet = buffer.get_tweet()
|
||||
if tweet.has_key("entities") == False or tweet["entities"].has_key("media") == False:
|
||||
output.speak(_(u"This tweet doesn't contain images"))
|
||||
return
|
||||
|
Reference in New Issue
Block a user