From be7ac97c62df5a245add77897440eff64fce0c1e Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Tue, 31 Dec 2019 01:01:27 +0900 Subject: [PATCH 1/4] Modify tuple comprehension --- pytchat/processors/combinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytchat/processors/combinator.py b/pytchat/processors/combinator.py index 1b76df5..b6759be 100644 --- a/pytchat/processors/combinator.py +++ b/pytchat/processors/combinator.py @@ -33,7 +33,7 @@ class Combinator(ChatProcessor): ------- Tuple of chat data processed by each chat processor. ''' - return tuple([processor.process(chat_components) - for processor in self.processors]) + return tuple(processor.process(chat_components) + for processor in self.processors) From b4f3307b1c15f9c8836a37490767883c403f2fd5 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Wed, 1 Jan 2020 20:08:07 +0900 Subject: [PATCH 2/4] Fix comment --- pytchat/processors/combinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/processors/combinator.py b/pytchat/processors/combinator.py index b6759be..c3a81b7 100644 --- a/pytchat/processors/combinator.py +++ b/pytchat/processors/combinator.py @@ -7,7 +7,7 @@ class Combinator(ChatProcessor): For example: [constructor] - chat = LiveChat("video_id", processor = ( Processor1(), Processor2(), Processor3() ) + chat = LiveChat("video_id", processor = ( Processor1(), Processor2(), Processor3() ) ) [receive return values] ret1, ret2, ret3 = chat.get() From b84a82341e0d66e8c14de2438c76984423316379 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Wed, 1 Jan 2020 21:13:39 +0900 Subject: [PATCH 3/4] Fix README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e8057cf..e60adc3 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ while chat.is_alive(): ### asyncio context: ```python from pytchat import LiveChatAsync +from concurrent.futures import CancelledError import asyncio async def main(): From 585a4be7dc48008a03d671d26e446ca584993814 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 2 Jan 2020 10:22:29 +0900 Subject: [PATCH 4/4] Increment version --- pytchat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/__init__.py b/pytchat/__init__.py index 92ce6f7..c9d3131 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -2,7 +2,7 @@ pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup. """ __copyright__ = 'Copyright (C) 2019 taizan-hokuto' -__version__ = '0.0.4.1' +__version__ = '0.0.4.2' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'