Skip to content

Releases: jdepoix/youtube-transcript-api

v0.6.3

18 Nov 09:52
97522b7
Compare
Choose a tag to compare

What's Changed

  • Fix grammatical mistakes in README by @Jai0401 in #287
  • Update README.md - cookies extension and instructions for export by @samfisherirl in #339
  • [security] defusedxml.ElementTree instead of xml.etree.ElementTree by @vasiliadi in #352

New Contributors

Full Changelog: v0.6.2...v0.6.3

v0.6.2

27 Dec 13:23
f5c9e16
Compare
Choose a tag to compare

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.

v0.6.1

16 Jun 13:27
Compare
Choose a tag to compare

Fixes

  • Fixed transcript list not showing display names for languages in English

v0.6.0

17 Apr 13:51
Compare
Choose a tag to compare

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.

v0.5.0

26 Oct 10:14
Compare
Choose a tag to compare

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!)

v0.4.4

30 Mar 15:35
Compare
Choose a tag to compare

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")

v0.4.3

13 Dec 10:19
Compare
Choose a tag to compare

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.

v0.4.2

08 Nov 10:07
Compare
Choose a tag to compare

Fixes:

  • Timestamp formatting in WebVTTFormatter has been fixed
  • When requests to YouTube return an error status code, a YouTubeRequestFailed exception is raised, wrapping the status code and error message

v0.4.1: Added ability to create consent cookies

31 Mar 14:09
46be97a
Compare
Choose a tag to compare

Fixes:

As of lately YouTube will occasionally return a page which requires the user to give consent to cookies being saved. Whenever this page was returned this this module was not able to process the response. Now it is able to recognise this case and create a consent cookie if needed.

v0.4.0

22 Mar 18:28
Compare
Choose a tag to compare

Features:

  • Added support for different formatters, including support for WebVVT (thanks @crhowell!)
  • Added distinct error message which appears when running into rate limits (thanks @kovan)

Fixes:

  • CLI now also supports video IDs starting with a dash (thanks @crhowell)
  • Documentation improvements (thanks @dafiulh)