Ytnoti

Latest version: v2.1.3

Safety actively analyzes 665899 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.1.3

------

* Fix a race condition that can cause duplicated notifications.

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v2.1.2...v2.1.3

2.1.2

------

* Fix not properly handling errors when resubscribing to channels every day.
* Fix race conditions in ``InMemoryVideoHistory`` and ``FileVideoHistory``

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v2.1.1...v2.1.2

2.1.1

------

* Fix raising an error when receiving the push notification for deleted video.
* From now on, ``ytnoti`` explicitly raises ``RuntimeError`` when failed to parse the request body from YouTube. In the past, it logged the error to the logger.

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v2.1.0...v2.1.1

2.1.0

------

* From now on, ``YouTubeNotifier`` extends ``AsyncYouTubeNotifier`` and ``AsyncYouTubeNotifier`` extends ``object``. ``BaseYouTubeNotifier`` was removed.
* Added ``(Async)YouTubeNotifier.run_in_background()``. It works like the ``run()`` method but immediately returns when the notifier starts running.
* Added ``(Async) YouTubeNotifier.unsubscribe()``. It unsubscribes the subscribed channel IDs
* From now on, ``(Async)YouTubeNotifier.subscribe()`` immediately raises ``ValueError`` when the given channel IDs are invalid. It didn't raise an error in the past until the notifier started running.
* Improved the speed of verifying channel IDs

Deprecations
~~~~~~~~~~~~

The following methods are deprecated and will be removed in version ``3.0.0``
* ``AsyncYouTubeNotifier.serve()`` -> ``use AsyncYouTubeNotifier.run()``
* ``(Async)YouTubeNotifier.add_listener()`` -> use either ``add_any_listener()``, ``add_upload_listener()``, or ``add_edit_listener()``

The following decorators are deprecated and will be removed in version ``3.0.0``
* ``(Async)YouTubeNotifier.listener()`` -> use either ``any``, ``upload`` or ``edit``

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v2.0.1...v2.1.0

2.0.1

------

* Fixed raising TypeError when a video supports multiple languages.

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v2.0.0...v2.0.1

2.0.0

------

Breaking Changes
~~~~~~~~~~~~~~~~

* The following fields in ``Video`` are removed as these are not sent by YouTube in the push notifications:

* description
* thumbnail
* stats

Bug Fixes
~~~~~~~~~

* Fixed YouTubeNotifier.run() and AsyncYouTubeNotifier.serve() raising TypeError when the optional parameter ``app`` wasn't given.
* Fixed (Async)YouTubeNotifier not invoking the event listeners for some YouTube channels.

**Full Changelog**: https://github.com/SeoulSKY/ytnoti/compare/v1.1.2...v2.0.0

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.