run¶
- YouTubeNotifier.run(*, port: int = 8000, app: FastAPI = None, log_level: int = 30, **kwargs: Any) None¶
Run the notifier to receive push notifications. This method will block until the notifier is stopped.
- Parameters:
port – The port to run the server on.
app – The FastAPI app to use. If not provided, a new app will be created.
log_level – The log level to use for the uvicorn server.
kwargs – Additional arguments to pass to the server configuration.