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