Fix renderer type check
This commit is contained in:
parent
3b580690c7
commit
8bc209fde8
@@ -31,7 +31,7 @@ class SimpleDisplayProcessor(ChatProcessor):
|
|||||||
purchase_amount_text = ''
|
purchase_amount_text = ''
|
||||||
else:
|
else:
|
||||||
root = ( action['addChatItemAction']['item'].get('liveChatPaidMessageRenderer') or
|
root = ( action['addChatItemAction']['item'].get('liveChatPaidMessageRenderer') or
|
||||||
action['addChatItemAction']['item'].get('liveChatPaidMessageRenderer') )
|
action['addChatItemAction']['item'].get('liveChatPaidStickerRenderer') )
|
||||||
if root:
|
if root:
|
||||||
author_name = root['authorName']['simpleText']
|
author_name = root['authorName']['simpleText']
|
||||||
message = self._parse_message(root.get('message'))
|
message = self._parse_message(root.get('message'))
|
||||||
|
|||||||
Reference in New Issue
Block a user