From 23e47f6fb03fcd9f28338bb251cd0f59a0f95e8a Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Tue, 10 Mar 2020 01:57:01 +0900 Subject: [PATCH] Fix parsing video_id which starts with '-' --- pytchat/cli/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytchat/cli/__init__.py b/pytchat/cli/__init__.py index 0bcdc03..0bd99b3 100644 --- a/pytchat/cli/__init__.py +++ b/pytchat/cli/__init__.py @@ -35,6 +35,8 @@ def main(): # Extractor if Arguments().video_ids: for video_id in Arguments().video_ids: + if '[' in video_id: + video_id = video_id.replace('[','').replace(']','') try: info = VideoInfo(video_id) print(f"Extracting...\n"