From d40720616b0c74c7b1138626340b1dfd250998d4 Mon Sep 17 00:00:00 2001 From: taizan-hokouto <55448286+taizan-hokuto@users.noreply.github.com> Date: Fri, 6 Nov 2020 19:56:54 +0900 Subject: [PATCH 1/2] Fix emoji encoding --- pytchat/processors/html_archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/processors/html_archiver.py b/pytchat/processors/html_archiver.py index f969a3a..c37cfca 100644 --- a/pytchat/processors/html_archiver.py +++ b/pytchat/processors/html_archiver.py @@ -132,7 +132,7 @@ class HTMLArchiver(ChatProcessor): return standard_b64encode(resp.content).decode() def _set_emoji_table(self, item: dict): - emoji_id = item['id'] + emoji_id = ''.join(('Z', item['id'])) if 48 <= ord(item['id'][0]) <= 57 else item['id'] if emoji_id not in self.emoji_table: self.emoji_table.setdefault(emoji_id, self.executor.submit(self._encode_img, item['url'])) return emoji_id From 07f4382ed44e68155c9127f33077c648386c8c4e Mon Sep 17 00:00:00 2001 From: taizan-hokouto <55448286+taizan-hokuto@users.noreply.github.com> Date: Fri, 6 Nov 2020 19:57:16 +0900 Subject: [PATCH 2/2] Increment version --- pytchat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/__init__.py b/pytchat/__init__.py index ebd5725..90c275b 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.4.0' +__version__ = '0.4.1' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'