A simple Flask application that sends notifications to Telegram whenever new content (movies, series, seasons, episodes) is added to Jellyfin.
pip install -r requirements.txt.python3 main.py.If you have Docker and Docker Compose installed, you can use the provided docker-compose.yml
.env file.docker-compose up./newbot command.bot.https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates to find the chat ID in the returned JSON.Plugins.Webhook and add a new webhook.http://localhost:5000/webhook).Notification Type, select Item Added.Item Type, select Movie, Episode, Season.Send All Properties (ignores template) option.EPISODE_PREMIERED_WITHIN_X_DAYS:
Determines how recent an episode's premiere date must be for a notification to be sent. For example, setting it to 7 means only episodes that premiered within the last 7 days will trigger a notification.
SEASON_ADDED_WITHIN_X_DAYS:
Dictates the threshold for sending notifications based on when a season was added to Jellyfin. If set to 3, then if a season was added within the last 3 days, episode notifications will not be sent to avoid potential spam from adding an entire season at once.
If you want to fetch YouTube trailer URLs for movies, you can set up a YouTube API key:
YOUTUBE_API_KEY environment variable in your .env file to the copied API key.Contributions are welcome! Feel free to open issues or submit pull requests for new features, bug fixes, or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
18 commits
Python
96.3%
Dockerfile
3.7%
A simple Flask application that sends notifications to Telegram whenever new content (movies, series, seasons, episodes) is added to Jellyfin.
pip install -r requirements.txt.python3 main.py.If you have Docker and Docker Compose installed, you can use the provided docker-compose.yml
.env file.docker-compose up./newbot command.bot.https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates to find the chat ID in the returned JSON.Plugins.Webhook and add a new webhook.http://localhost:5000/webhook).Notification Type, select Item Added.Item Type, select Movie, Episode, Season.Send All Properties (ignores template) option.EPISODE_PREMIERED_WITHIN_X_DAYS:
Determines how recent an episode's premiere date must be for a notification to be sent. For example, setting it to 7 means only episodes that premiered within the last 7 days will trigger a notification.
SEASON_ADDED_WITHIN_X_DAYS:
Dictates the threshold for sending notifications based on when a season was added to Jellyfin. If set to 3, then if a season was added within the last 3 days, episode notifications will not be sent to avoid potential spam from adding an entire season at once.
If you want to fetch YouTube trailer URLs for movies, you can set up a YouTube API key:
YOUTUBE_API_KEY environment variable in your .env file to the copied API key.Contributions are welcome! Feel free to open issues or submit pull requests for new features, bug fixes, or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
18 commits
Python
96.3%
Dockerfile
3.7%