Skip to content

v4.4

Compare
Choose a tag to compare
@Egsagon Egsagon released this 22 Jan 15:28
· 124 commits to master since this release

Changelog

  • Added package headers
  • Added video.is_HD, video.is_VR, video.embed
  • For authentified accounts, started using client._granted_token instead of parsing one on each video page. Helps not fetching the video page when interractions are needed (TODO - Use the first encountered video page instead of the home page for optimisation since the video page is more likely to be fetched afterwards anyway and the home page is heavy).
  • video.fetch key argument can take a third type of key: <datakey>|<pagekey>. The key that requires the least effort will be fetched considering the already cached data and page mediaDefinitions.
  • Fixed video._assert_internal_success not reporting errors
  • Overall improvements on video properties cache
  • Disabled query emulation using playlists by default. If you attempt to use a video property that requires query data, and the video does not come from a VideoQuery, an error will be raised unless you set video.ALLOW_QUERY_SIMULATION = True. This is supposed to be dissuasive since the manipulation is costly, especially while used in a video iterator.
  • Implemented the #43 suggestion while keeping the old properties.
  • Video objects now keep track of their parent queries.
  • Quality object are a bit more permissive with the input value and can take values of the form '144p' and others.
  • Improved the object representations of Queries and Quality objects