Jump to content

Mail notificaties once a week scripted


Recommended Posts

Posted

I don’t use Emby’s built-in notifications myself, because when I add new content, users tend to experience those notifications as spam.
I’ve created a PowerShell script that uses the API key to query Emby and separates the new content into movies and series/TV shows.

The genre is included, and for movies only I added a trailer option—if a trailer is available, it will be shown.Emby new content by week.ps1I also added the IMDb rating, and if that rating is unavailable, the script falls back to Rotten Tomatoes.
When I upload multiple seasons with episodes, they are grouped together.

The PowerShell script is triggered by a scheduled task, (windows pc) which in my case runs once per week at 15:55, because my weekly cycle runs from 16:00 to 16:00 the following week.

The script has been tested in both Gmail and the Outlook client.
I’ve attached the script and two examples. text in my screenshot is dutch 😉

In the script, you only need to fill in the URL, API key, and your mail settings at the top, and the recipients at the bottom.

series.png

film.png

  • Like 1
  • Thanks 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...