fixed typo
This commit is contained in:
parent
aa34a2ceb3
commit
889cedcbf0
|
@ -72,7 +72,7 @@ YouTubeTranscriptApi.get_transcripts(video_ids, languages=['de', 'en'])
|
|||
|
||||
### 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
|
||||
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'])
|
||||
```
|
||||
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue