Compare commits

..

6 Commits

Author SHA1 Message Date
taizan-hokuto
785a82b618 Merge branch 'release/v0.0.7.1' 2020-05-06 01:24:54 +09:00
taizan-hokuto
faf886eebd Increment version 2020-05-06 01:24:30 +09:00
taizan-hokuto
d14262cbcb Merge branch 'hotfix/sponsor_text' 2020-05-06 01:23:37 +09:00
taizan-hokuto
8a627414cb Merge tag 'sponsor_text' into develop 2020-05-06 01:23:37 +09:00
taizan-hokuto
da7c694dfb Modify parsing membership 2020-05-06 01:23:19 +09:00
taizan-hokuto
9aa35b9756 Merge tag 'v0.0.7' into develop
v0.0.7
2020-05-05 22:59:16 +09:00
3 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup. pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup.
""" """
__copyright__ = 'Copyright (C) 2019 taizan-hokuto' __copyright__ = 'Copyright (C) 2019 taizan-hokuto'
__version__ = '0.0.7' __version__ = '0.0.7.1'
__license__ = 'MIT' __license__ = 'MIT'
__author__ = 'taizan-hokuto' __author__ = 'taizan-hokuto'
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'

View File

@@ -35,6 +35,6 @@ class LiveChatMembershipItemRenderer(BaseRenderer):
} }
def get_message(self, renderer): def get_message(self, renderer):
message = (renderer["headerSubtext"]["runs"][0]["text"] message = ''.join([mes.get("text", "") for mes in renderer["headerSubtext"]["runs"]])
)+' / '+(renderer["authorName"]["simpleText"]) return message, [message]
return message

View File

@@ -10,6 +10,6 @@ class LiveChatMembershipItemRenderer(BaseRenderer):
self.author.isChatSponsor = True self.author.isChatSponsor = True
def get_message(self, renderer): def get_message(self, renderer):
message = (renderer["headerSubtext"]["runs"][0]["text"] message = ''.join([mes.get("text", "") for mes in renderer["headerSubtext"]["runs"]])
)+' / '+(renderer["authorName"]["simpleText"]) return message, [message]
return message