diff --git a/.travis.yml b/.travis.yml index 61427f2..ee49bde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,11 @@ language: python python: - "3.5" - "3.6" - - "3.7" + - "3.7.11" - "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/requirements.txt b/requirements.txt index 0b8ea35..d8ea987 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ requests==2.24.0 # testing mock==3.0.5 -httpretty==0.9.7 -coverage==5.2.1 +httpretty==1.1.4 coveralls==1.11.1 +coverage==5.2.1 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 a031a21..cea50c4 100644 --- a/youtube_transcript_api/_transcripts.py +++ b/youtube_transcript_api/_transcripts.py @@ -166,7 +166,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