Skip to content

Commit

Permalink
Merge pull request #148 from jdepoix/bugfix/fix-python3.7-build
Browse files Browse the repository at this point in the history
Fix python 3.7 build
  • Loading branch information
jdepoix committed Mar 30, 2022
2 parents a239568 + 4063b58 commit 6957407
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Expand Up @@ -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
1 change: 1 addition & 0 deletions youtube_transcript_api/_api.py
Expand Up @@ -13,6 +13,7 @@
CookiesInvalid
)


class YouTubeTranscriptApi(object):
@classmethod
def list_transcripts(cls, video_id, proxies=None, cookies=None):
Expand Down
2 changes: 1 addition & 1 deletion youtube_transcript_api/_transcripts.py
Expand Up @@ -170,7 +170,7 @@ def find_transcript(self, language_codes):
"""
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
Expand Down

0 comments on commit 6957407

Please sign in to comment.