Skip to content

A Python script that automatically sends Discord notifications whenever new items are added to your Plex watchlist.

License

Notifications You must be signed in to change notification settings

mercuryy-1337/plex_discord_notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plex_discord_notifier

A Python script that automatically sends Discord notifications whenever new items are added to your Plex watchlist.

Requirements

  • Python or Python3
  • Install dependencies using pip: pip install -r requirements.txt
  • A Plex Media Server
  • A Discord webhook

Setup

  1. Get your Plex Token: Instructions can be found on Plex's support site: Finding an Authentication Token (X-Plex-Token)
  2. Create a Discord Webhook: Instructions are available on Discord's support site: Intro to Webhooks
  3. Edit the script:
    • Replace <plex token> with your actual Plex token.
    • Replace <webhook url> with your Discord webhook URL.
    • Replace <Username> and <Password> with your Plex account credentials.

Usage

  1. Make sure your Plex Media Server is running.
  2. Run the script: python plex_watchlist_notifier.py

How it Works

  • The script connects to your Plex Media Server using your Plex token.
  • It retrieves your initial watchlist.
  • The script enters a loop:
    • It periodically fetches an updated version of your watchlist.
    • It compares the updated watchlist to the previous version to identify newly added items.
    • For each new item, it sends a notification to your Discord channel via the webhook.

Customization

  • You can change the PLEX_URL if your Plex server isn't running locally.
  • You can adjust the time.sleep(30) value to control how frequently the script checks for changes. (Default is 30 so as to not hit Plex's API rate limit)

About

A Python script that automatically sends Discord notifications whenever new items are added to your Plex watchlist.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages