From 3bcc5164e1997481af81da74615f32960e741e90 Mon Sep 17 00:00:00 2001 From: "Zev Averbach (aider)" Date: Fri, 3 Jan 2025 14:05:41 +0100 Subject: [PATCH] fix: Update subtitle download function to return duration_mins --- summarize_yt/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/summarize_yt/cli.py b/summarize_yt/cli.py index 1af1735..5f15f4f 100644 --- a/summarize_yt/cli.py +++ b/summarize_yt/cli.py @@ -88,7 +88,7 @@ def download_subtitles(url: str, quiet: bool = False) -> Tuple[bool, Optional[Pa if not vtt_files: print("No VTT file found after download", file=sys.stderr) - return False, None + return False, None, 0 return True, vtt_files[0], duration_mins @@ -98,7 +98,7 @@ def download_subtitles(url: str, quiet: bool = False) -> Tuple[bool, Optional[Pa print(f"Debug: Full exception info: {type(e).__name__}: {str(e)}") import traceback traceback.print_exc() - return False, None + return False, None, 0 def clean_vtt_text(text: str) -> str: