v1.0.0
Breaking Changes
- Class
Notification
is removed. Instead, the classVideo
is passed to the listeners.Video
contains a fieldchannel
. Their definitions are moved fromytnoti.models.notification.py
toytnoti.models.video.py
- Parameter
cache_size
forYouTubeNotifier
is removed. Instead, it takesvideo_history
argument and the constructor ofInMemoryVideoHistory
takescache_size
- Parameter
endpoint
is removed fromYouTubeNotifier.run()
. From now on, the endpoint is extracted from the givencallback_url
subscribe()
now raisesHTTPError
defined in this package rather than the one defined in packagehttpx
Improvements
- Class
AsyncYouTubeNotifier
is added. It's the async version ofYouTubeNotifier
that can be run in the existing event loop. - Abstract class
VideoHistory
can be passed to the constructor ofYouTubeNotifier
.InMemoryVideoHistory
andFileVideoHistory
extends the abstract class. You can also implement your own class that extendsVideoHistory
and pass it to theYouTubeNotifier
Full Changelog: v0.1.2...v1.0.0