diff --git a/pytchat/__init__.py b/pytchat/__init__.py index c5b9f2c..afe6c7f 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -2,7 +2,7 @@ pytchat is a lightweight python library to browse youtube livechat without Selenium or BeautifulSoup. """ __copyright__ = 'Copyright (C) 2019 taizan-hokuto' -__version__ = '0.1.1' +__version__ = '0.1.2' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' diff --git a/pytchat/processors/default/renderer/paidsticker.py b/pytchat/processors/default/renderer/paidsticker.py index 723eb88..6a52a7e 100644 --- a/pytchat/processors/default/renderer/paidsticker.py +++ b/pytchat/processors/default/renderer/paidsticker.py @@ -21,7 +21,7 @@ class LiveChatPaidStickerRenderer(BaseRenderer): self.amountString = amountDisplayString self.currency = currency.symbols[symbol]["fxtext"] if currency.symbols.get( symbol) else symbol - self.bgColor = self.renderer.get("moneyChipBackgroundColor", 0) + self.bgColor = self.renderer.get("backgroundColor", 0) self.sticker = "".join(("https:", self.renderer["sticker"]["thumbnails"][0]["url"])) self.colors = self.get_colors() diff --git a/tests/test_default_processor.py b/tests/test_default_processor.py index 1ea7a3d..5ab0c34 100644 --- a/tests/test_default_processor.py +++ b/tests/test_default_processor.py @@ -136,7 +136,7 @@ def test_supersticker(mocker): assert ret.amountValue == 200 assert ret.amountString == "¥200" assert ret.currency == "JPY" - assert ret.bgColor == 4278248959 + assert ret.bgColor == 4278237396 assert ret.sticker == "https://lh3.googleusercontent.com/param_s=s72-rp" assert ret.author.name == "author_name" assert ret.author.channelId == "author_channel_id"