From e88783d69e8830b964f0589df66d966d17123147 Mon Sep 17 00:00:00 2001 From: "E. Seiver" <5547078+eseiver@users.noreply.github.com> Date: Wed, 15 Mar 2023 18:49:35 -0700 Subject: [PATCH] fix spacing --- youtube_transcript_api/_transcripts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_transcript_api/_transcripts.py b/youtube_transcript_api/_transcripts.py index 9107c04..a1b2b5c 100644 --- a/youtube_transcript_api/_transcripts.py +++ b/youtube_transcript_api/_transcripts.py @@ -108,8 +108,7 @@ class TranscriptList(object): This object represents a list of transcripts. It can be iterated over to list all transcripts which are available for a given YouTube video. Also it provides functionality to search for a transcript in a given language. """ - def __init__(self, video_id, manually_created_transcripts, generated_transcripts, translation_languages, -): + def __init__(self, video_id, manually_created_transcripts, generated_transcripts, translation_languages): """ The constructor is only for internal use. Use the static build method instead. @@ -304,8 +303,7 @@ class Transcript(object): """ response = self._http_client.get(self._url) return _TranscriptParser(preserve_formatting=self.preserve_formatting).parse( - _raise_http_errors(response, self.video_id).text, - ) + _raise_http_errors(response, self.video_id).text,) def __str__(self): return '{language_code} ("{language}"){translation_description}'.format( @@ -335,6 +333,8 @@ class Transcript(object): [], preserve_formatting=self.preserve_formatting, ) + + class _TranscriptParser(object): def __init__(self, preserve_formatting=False): self.preserve_formatting = preserve_formatting