Skip to content

v1.0.0

Compare
Choose a tag to compare
@SeoulSKY SeoulSKY released this 01 Jul 16:13
· 74 commits to main since this release

Breaking Changes

  • Class Notification is removed. Instead, the class Video is passed to the listeners. Video contains a field channel. Their definitions are moved from ytnoti.models.notification.py to ytnoti.models.video.py
  • Parameter cache_size for YouTubeNotifier is removed. Instead, it takes video_history argument and the constructor ofInMemoryVideoHistory takes cache_size
  • Parameter endpoint is removed from YouTubeNotifier.run(). From now on, the endpoint is extracted from the given callback_url
  • subscribe() now raises HTTPError defined in this package rather than the one defined in package httpx

Improvements

  • Class AsyncYouTubeNotifier is added. It's the async version of YouTubeNotifier that can be run in the existing event loop.
  • Abstract class VideoHistory can be passed to the constructor of YouTubeNotifier. InMemoryVideoHistory and FileVideoHistory extends the abstract class. You can also implement your own class that extends VideoHistory and pass it to the YouTubeNotifier

Full Changelog: v0.1.2...v1.0.0