From cf661c343b0af3dded9f46d907e49dcc6af5ebfc Mon Sep 17 00:00:00 2001 From: SeoulSKY Date: Thu, 18 Jul 2024 14:20:08 -0600 Subject: [PATCH] Update docs --- docs/advanced.rst | 7 +++++++ docs/conf.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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