From 1f46dc397432757e3d459dd1a4aa873638a5c779 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 4 Jan 2026 04:15:30 +0900 Subject: [PATCH] #42 --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7f9c319..d944afe 100644 --- a/main.py +++ b/main.py @@ -991,7 +991,8 @@ class NicoVideo (Video): comments = fetch_comments (video_code) fetch_nico_video (video_code, comments) super ().__init__ (game, './outputs/output.mp4') - except Exception: + except Exception as ex: + print (ex) super ().__init__ (game, './assets/snack_time.mp4') (self.width, self.height) = (CWindow.HEIGHT * 16 // 9, CWindow.HEIGHT) (self.x, self.y) = ((CWindow.WIDTH - self.width) / 2, 0) @@ -1043,7 +1044,8 @@ def fetch_nico_video ( '-crf', '18', '-preset', 'veryfast', '-c:a', 'copy', - './outputs/output.mp4'], + './outputs/output.mp4', + '-y'], check = True) @@ -1051,7 +1053,7 @@ def fetch_comments ( video_code: str, ) -> list[CommentDict]: result = subprocess.run ( - ['python3', 'get_kiriban_list.py', video_code], + ['python3', 'get_comments_by_video_code.py', video_code], cwd = NIZIKA_NICO_DIR, env = os.environ, capture_output = True,