Youtube-transcript-api

Latest version: v0.6.2

Safety actively analyzes 613544 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.6.2

Fixes
- YouTube has made some changes which caused the `translationLanguages` key to sometimes be missing from the captions json. This release adjusts the fetching process to initialize `translation_languages` with an empty list in case that happens.

0.6.1

Fixes
- Fixed transcript list not showing display names for languages in English

0.6.0

Features
- The optional parameter `preserve_formatting` has been added to `YouTubeTranscriptApi.get_transcript`, `YouTubeTranscriptApi.get_transcripts`, and `Transcript.fetch`. If this is set to `True`, formatting elements such as `<i>` (italics) and `<b>` (bold) are no longer removed from the transcript. (thanks to eseiver!)
- Using the URL of a YouTube video instead of it's video ID will no throw a `InvalidVideoId` exception.

0.5.0

Features
- Added support for formatting `.srt` files using the `SRTFormatter` (thanks to liamrs222!)
- `get_transcript` and `get_transcripts` now assert that their input type is correct, as users commonly passed a video id (string) into `get_transcripts` although it expects a list. Since a string is an iterable the module tried to find a video for each character of that string, which failed with a not-so-helpful error message. (thanks to majamil16!)

0.4.4

Fixes
- Transcript language list is now properly escaped, thereby fixing a decoding error which would occur on transcripts for languages containing `"` in their name (like `Estnisch - "Raev"`)

0.4.3

Fixes
- Fixed bug where `TranscriptsDisabled` wasn't raised properly (thanks to xenova!)
- Fixed Typo in the `FormatterLoader`, which was preventing the `WebVTTFormatter` from being loaded properly (thanks to MAJA-Lin!)

Breaking
- Dropped support for python 2.7. While this module should currently still run on python 2.7, it has been removed from the travis builds, therefore, there is no assurance that future versions will run with python 2.7.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.