From 39cdc1c54c083383b2c1b2391e4ed29f1926790a Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:22:24 +0200 Subject: [PATCH] pip and setuptools are now specifically updated before building the project --- .travis.yml | 2 ++ youtube_transcript_api/_api.py | 1 + youtube_transcript_api/_transcripts.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 61427f2..0d8f24f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: - "3.7" - "3.8" install: + - pip install --upgrade pip + - pip install --upgrade setuptools - pip install -r requirements.txt script: - coverage run -m unittest discover diff --git a/youtube_transcript_api/_api.py b/youtube_transcript_api/_api.py index 37bd6b2..a618b0e 100644 --- a/youtube_transcript_api/_api.py +++ b/youtube_transcript_api/_api.py @@ -13,6 +13,7 @@ from ._errors import ( CookiesInvalid ) + class YouTubeTranscriptApi(object): @classmethod def list_transcripts(cls, video_id, proxies=None, cookies=None): diff --git a/youtube_transcript_api/_transcripts.py b/youtube_transcript_api/_transcripts.py index d7fd5b3..d5ba3ed 100644 --- a/youtube_transcript_api/_transcripts.py +++ b/youtube_transcript_api/_transcripts.py @@ -170,7 +170,7 @@ class TranscriptList(object): """ Finds a transcript for a given language code. Manually created transcripts are returned first and only if none are found, generated transcripts are used. If you only want generated transcripts use - find_manually_created_transcript instead. + `find_manually_created_transcript` instead. :param language_codes: A list of language codes in a descending priority. For example, if this is set to ['de', 'en'] it will first try to fetch the german transcript (de) and then fetch the english transcript (en) if