diff --git a/docs/advanced.rst b/docs/advanced.rst index 7a3832c..4d56871 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -44,6 +44,13 @@ However, you can pass your own FastAPI instance when you run (Async)YouTubeNotif notifier = YouTubeNotifier() + + @notifier.upload() + async def listener(video): + print(f"New video from {video.channel.name}: {video.title}") + + + notifier.subscribe("UC9EEyg7QBL-stRX-7hTV3ng") # Channel ID of SpeedyStyle notifier.run(app=app) diff --git a/docs/conf.py b/docs/conf.py index b1627fd..c0e396d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ project = "ytnoti" copyright = "2024 - Present, SeoulSKY" author = "SeoulSKY" -release = "1.1.1" +release = "1.1.2" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration