Merge pull request #16 from jdepoix/feature/ISSUE-15
updated error message
This commit is contained in:
commit
955b5b73c2
|
@ -1,7 +1,6 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
|
||||||
- "3.4"
|
- "3.4"
|
||||||
- "3.5"
|
- "3.5"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
|
|
|
@ -27,8 +27,13 @@ class YouTubeTranscriptApi():
|
||||||
|
|
||||||
ERROR_MESSAGE = (
|
ERROR_MESSAGE = (
|
||||||
'Could not get the transcript for the video {video_url}! '
|
'Could not get the transcript for the video {video_url}! '
|
||||||
'Most likely subtitles have been disabled by the uploader or the video is no longer '
|
'This usually happens if one of the following things is the case:\n'
|
||||||
'available.'
|
' - subtitles have been disabled by the uploader\n'
|
||||||
|
' - none of the language codes you provided are valid\n'
|
||||||
|
' - 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'
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, video_id):
|
def __init__(self, video_id):
|
||||||
|
|
Loading…
Reference in New Issue