Skip to content

Releases: pytube/pytube

Bugfixes

27 Aug 22:55
Compare
Choose a tag to compare
  • Fixes RegexMatchError in n cipher
  • Added documentation for some new functionality
  • last_updated will now return the raw text if it can't parse a datetime (e.g. "X days ago")
  • change default innertube client for Search objects to WEB

get_video_info -> InnerTube API

03 Aug 23:09
Compare
Choose a tag to compare
  • User InnerTube in place of get_video_info url

  • Added some additional base parameters for innertube requests.

  • Added Oauth support for innertube client

  • Add exception for age-restricted videos which can no longer be accessed without using auth.

  • Carved out and simplified code where possible due to API changes.

  • Added renderer catch -- fixes #1068

  • Additional channel name support for URL-encoded names.

  • Updated test mocks, removed region-locked test because that functionality no longer works.

Due to significant changes in how video info is accessed, certain YouTube object attributes no longer exist, which could cause breaking changes in code bases that rely on those attributes, hence the major version release.

Bugfixes and innertube additions

21 Jul 00:40
Compare
Choose a tag to compare
  • Add catch for suggested search results; accounts for edge case of no views on result.

  • Added exception handling for incorrect cached js files.

  • Now allows you to actually set filenames, instead of doing partial overrides to create safe filenames.

  • Innertube improvements, and skeleton code for future innertube work

Minor test fix

07 Jul 19:29
Compare
Choose a tag to compare
  • Update mock so that stream raises HTTPError, rather than head, and simplified some other mocks.

  • pep8-naming updated, adding a new ignore

Bundle of bugfixes

06 Jul 23:28
Compare
Choose a tag to compare
  • Removed special character from author attribute.

  • Changed -v CLI arg to have a single setting, rather than multiple.

  • Add retry functionality for IncompleteRead errors.

  • Extract contentLength from info where possible.

  • Mock open in final streams test to prevent file from being written.

  • Exception handling for accessing titles of private videos.

Download throttling fix

06 Jul 00:49
Compare
Choose a tag to compare
  • Emulates the js player to calulate the value of n to prevent download slowdowns

  • Adds some additional debugging to HTMLParseErrors

  • Adds a helper for generating new html json files

  • Parser improvement

Channel improvements and bugfix for YouTube change

19 Jun 00:44
Compare
Choose a tag to compare
  • Improved support for additional channel URLs
  • Improved metadata for channels
  • Improved channel documentation
  • Change to get_video_info call to fix 404 issue

Playlist length fix

02 Jun 22:32
Compare
Choose a tag to compare
  • Fixes an issue where playlist lengths were not being cast to ints correctly for large playlists.

Livestream and channel bugfixes

30 May 18:02
Compare
Choose a tag to compare
  • Implements an actual check for whether a video is a livestream, and raises an exception if it is.
  • Fixes channel url matching for channels without canonical names.

Fix for 404 on get_video_info URL

20 May 21:54
Compare
Choose a tag to compare
  • Fixes the 404 issue by adding html5=1 as an additional query parameter to the get_video_info endpoint

  • Prepends the URL used with www. to avoid the redirect that occurs.