From 8bc209fde8b64959793c87bb876cd821ddac5a24 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 22:26:47 +0900 Subject: [PATCH] Fix renderer type check --- pytchat/processors/simple_display_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/processors/simple_display_processor.py b/pytchat/processors/simple_display_processor.py index 281b3df..1ca01ce 100644 --- a/pytchat/processors/simple_display_processor.py +++ b/pytchat/processors/simple_display_processor.py @@ -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'))