diff --git a/pytchat/paramgen/arcparam.py b/pytchat/paramgen/arcparam.py index f7b0b46..6cc7650 100644 --- a/pytchat/paramgen/arcparam.py +++ b/pytchat/paramgen/arcparam.py @@ -8,12 +8,9 @@ import urllib.parse ''' Generate continuation parameter of youtube replay chat. -Author: taizan-hokuto (2019) +Author: taizan-hokuto (2019) @taizan205 ver 0.0.1 2019.10.05 - -if you use/copy this module -please tell me -> https://twitter.com/taizan205 ''' def _gen_vid(video_id): diff --git a/pytchat/paramgen/liveparam.py b/pytchat/paramgen/liveparam.py index 2fc3f6c..83ea612 100644 --- a/pytchat/paramgen/liveparam.py +++ b/pytchat/paramgen/liveparam.py @@ -7,12 +7,9 @@ import urllib.parse ''' Generate continuation parameter of youtube live chat. -Author: taizan-hokuto (2019) - +Author: taizan-hokuto (2019) @taizan205 +https://twitter.com/taizan205 ver 0.0.1 2019.10.05 - -if you use/copy this module -please tell me -> https://twitter.com/taizan205 ''' def _gen_vid(video_id): """generate video_id parameter. diff --git a/pytchat/processors/default/renderer/base.py b/pytchat/processors/default/renderer/base.py index c555b70..507a949 100644 --- a/pytchat/processors/default/renderer/base.py +++ b/pytchat/processors/default/renderer/base.py @@ -13,6 +13,11 @@ class BaseRenderer: self.id = self.renderer.get('id') timestampUsec = int(self.renderer.get("timestampUsec",0)) self.timestamp = int(timestampUsec/1000) + tst = self.renderer.get("timestampText") + if tst: + self.timestampText = tst.get("simpleText") + else: + self.timestampText = "" self.datetime = self.get_datetime(timestampUsec) self.message = self.get_message(self.renderer) self.id = self.renderer.get('id')