Skip to content

Commit

Permalink
Merge 3d199e1 into ee4741d
Browse files Browse the repository at this point in the history
  • Loading branch information
jdepoix committed Oct 9, 2019
2 parents ee4741d + 3d199e1 commit 9978da1
Show file tree
Hide file tree
Showing 2 changed files with 1,928 additions and 1,204 deletions.
6 changes: 4 additions & 2 deletions youtube_transcript_api/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ class CouldNotRetrieveTranscript(Exception):
' - none of the languages you provided are supported by the video\n'
' - the video is no longer available.\n\n'
'If none of these things is the case, please create an issue at '
'https://github.com/jdepoix/youtube-transcript-api/issues'
'https://github.com/jdepoix/youtube-transcript-api/issues.'
'Please add which version of youtube_transcript_api you are using and make sure that there '
'are no open issues which already describe your problem!'
)

def __init__(self, video_id):
Expand Down Expand Up @@ -99,7 +101,7 @@ class _TranscriptFetcher():
WATCH_URL = 'https://www.youtube.com/watch?v={video_id}'
API_BASE_URL = 'https://www.youtube.com/api/{api_url}'
LANGUAGE_REGEX = re.compile(r'(&lang=.*&)|(&lang=.*)')
TIMEDTEXT_STRING = 'timedtext'
TIMEDTEXT_STRING = 'timedtext?v='

def __init__(self, video_id, languages, proxies):
self.video_id = video_id
Expand Down

0 comments on commit 9978da1

Please sign in to comment.