Fix renderer type check

This commit is contained in:
55448286+taizan-hokuto@users.noreply.github.com
2019-11-03 22:26:47 +09:00
parent 3b580690c7
commit 8bc209fde8

View File

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