Merge branch 'hotfix/fix'

This commit is contained in:
taizan-hokuto
2020-11-15 16:54:24 +09:00
2 changed files with 3 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
pytchat is a lightweight python library to browse youtube livechat without Selenium or BeautifulSoup.
"""
__copyright__ = 'Copyright (C) 2019, 2020 taizan-hokuto'
__version__ = '0.4.3'
__version__ = '0.4.4'
__license__ = 'MIT'
__author__ = 'taizan-hokuto'
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'

View File

@@ -1,4 +1,4 @@
from datetime import datetime, timedelta, timezone
from datetime import datetime
class Author:
@@ -90,8 +90,7 @@ class BaseRenderer:
self.chat.author.badgeUrl = badge["liveChatAuthorBadgeRenderer"]["customThumbnail"]["thumbnails"][0]["url"]
def get_datetime(self, timestamp):
jst = timezone(timedelta(hours=9))
dt = datetime.fromtimestamp(timestamp / 1000000, jst)
dt = datetime.fromtimestamp(timestamp / 1000000)
return dt.strftime('%Y-%m-%d %H:%M:%S')
def get_chatobj(self):