From 3662b7ea24c7aea143a98fcf09bc7674fb2aad11 Mon Sep 17 00:00:00 2001 From: Mitja Date: Tue, 21 Jun 2022 14:10:05 +0000 Subject: [PATCH] Transcriptions are blank - Fixes #181 --- youtubesearchpython/core/transcript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtubesearchpython/core/transcript.py b/youtubesearchpython/core/transcript.py index e98e3fd..3b6b186 100644 --- a/youtubesearchpython/core/transcript.py +++ b/youtubesearchpython/core/transcript.py @@ -69,7 +69,7 @@ def extract_transcript(self): j = { "startMs": getValue(segment, ["startMs"]), "endMs": getValue(segment, ["endMs"]), - "text": getValue(segment, ["snippet", "simpleText"]), + "text": getValue(segment, ["snippet", "runs", 0, "text"]), "startTime": getValue(segment, ["startTimeText", "simpleText"]) } segments.append(j)