-
Notifications
You must be signed in to change notification settings - Fork 282
Notifications
With v4.3.1, there is now notifications support. There are built-in notifications in the UI where you can interact with the alerts, and there's third party integrations. This wiki page primarily focuses on the latter.
Go to the Notifications
tab in your settings to integrate with:
- Discord
- Slack
- Telegram
- Gotify
- ntfy
- Any service that supports custom webhooks! This includes Zapier and Automatisch
There are currently 3 types of notifications. Here they are and the type of data you'll get:
- Download complete
- Included data: video title, original URL, new URL (on your instance), thumbnail
- Download error
- Included data: error type, original URL
- Task finished
- Included data: task title
You can disable or enable each type of notification to your choosing.
Docs: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
- In a channel, go into the settings and click integrations
- Create a webhook
- Copy the webhook into the discord webhook setting
- All set!
Docs: https://api.slack.com/messaging/webhooks
- Create a slack app (use "from scratch")
- Assign the slack app to your desired workspace
- Click
Incoming Webhooks
and enable it - Click
Add New Webhook to Workspace
- Give it permissions to your desired channel
- It should return you back to the
Incoming Webhooks
page with a webhook URL at the bottom. Copy it into the dedicated settings for slack webhooks - All set!
For Telegram, you will need two things: a bot token and a chat ID
- To get a bot token, create a bot using BotFather
- Type
/newbot
and follow the instructions - Copy the generated token into the
Telegram bot token
setting
- Type
- Get your chat ID using the get id bot
- You can get your ID by typing
/my_id
- You can get your ID by typing
Docs: https://gotify.net/
For Gotify you will need the server URL, as well as an app token. You can generate the app token from Gotify's web UI
Docs: https://docs.ntfy.sh/
All you need is the topic URL!
You can test out the functionality by going to the demo site and creating a topic: https://ntfy.sh/app
Paste the URL, which could be retrieved from a third party service like Zapier or Automatisch. Here's the format of the data you will get in the body of the POST:
{
body: <general message>,
title: <notification title>,
type: <notification type>,
url: <relevant url to your instance>,
thumbnail: <video thumbnail if present>
}
Three notification types:
- download_complete
- download_error
- task_finished
Here's an example of a download error notification:
{
body: "Error: exists_in_archive\nURL: https://www.youtube.com/watch?v=example_id"
title: "Download error"
type: "download_error"
url: "http://127.0.0.1:17442/#/downloads"
thumbnail: null
}