fixed typo

This commit is contained in:
Jonas Depoix 2019-12-30 18:41:08 +01:00
parent aa34a2ceb3
commit 889cedcbf0
1 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ YouTubeTranscriptApi.get_transcripts(video_ids, languages=['de', 'en'])
### List available transcripts ### List available transcripts
If you want to list all transcripts which are available for a given video you can call If you want to list all transcripts which are available for a given video you can call:
```python ```python
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id, languages=['de', 'en']) transcript_list = YouTubeTranscriptApi.list_transcripts(video_id, languages=['de', 'en'])
@ -94,7 +94,7 @@ transcript = transcript_list.find_manually_created_transcript(['de', 'en'])
transcript = transcript_list.find_generated_transcript(['de', 'en']) transcript = transcript_list.find_generated_transcript(['de', 'en'])
``` ```
The methods `find_generated_transcript`, `find_manually_created_transcript`, `find_generated_transcript` return `Transcript` objects. They contain metadata regarding the transcript The methods `find_generated_transcript`, `find_manually_created_transcript`, `find_generated_transcript` return `Transcript` objects. They contain metadata regarding the transcript:
```python ```python
print( print(
@ -196,7 +196,7 @@ Translating transcripts using the CLI is also possible:
youtube_transcript_api <first_video_id> <second_video_id> ... --languages en --translate de youtube_transcript_api <first_video_id> <second_video_id> ... --languages en --translate de
``` ```
If you are not sure which languages are available for a given video you can call: If you are not sure which languages are available for a given video you can call, to list all available transcripts:
``` ```
youtube_transcript_api --list-transcripts <first_video_id> youtube_transcript_api --list-transcripts <first_video_id>