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