This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Written by pmow/Hellowlol | |
# Upload to Gist by JonnyWong16 | |
# For this video transcode alert script, you should select the script for action types where it would be useful: | |
# Playback Start and Playback Resume, for example. | |
# Under Settings > Notifications > Scripts, set the parameters that should get passed to the script. | |
import sys | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Written by pmow | |
# Upload to Gist by JonnyWong16 | |
# For this video transcode alert script, you should select the script for action types where it would be useful: | |
# Playback Start and Playback Resume, for example. | |
# Under Settings > Notifications > Scripts, set the parameters that should get passed to the script. | |
## Telegram notification basic script | |
### Based on Matriphe's at https://gist.github.com/matriphe/9a51169508f266d97313 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Send a PlexPy notification with the directors' IMDB page. | |
# Author: /u/SwiftPanda16 | |
# Requires: requests, imdbpie | |
# PlexPy script trigger: Playback stop | |
# PlexPy script arguments: "{title}" {imdb_id} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import platform | |
import requests | |
from uuid import getnode | |
''' | |
Available options to create a movie library: | |
agent: com.plexapp.agents.imdb # Freebase | |
com.plexapp.agents.themoviedb # The Movie Database | |
com.plexapp.agents.none # Personal Media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Saves artist.jpg to the Artist folder. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
from plexapi.server import PlexServer | |
import os | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from email.mime.text import MIMEText | |
import email.utils | |
import smtplib | |
import sys | |
# Arguments passed from PlexPy | |
# {show_name} {episode_name} {season_num} {episode_num} | |
show_name = sys.argv[1] | |
# You can add more arguments if you want more details in the email body | |
# episode_name = sys.argv[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Send a PlexPy notification when the total | |
# number of streams exceeds a threshold. | |
# Author: /u/SwiftPanda16 | |
# Requires: requests | |
# PlexPy script trigger: Playback start | |
# PlexPy script arguments: {streams} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
PLEXPY_URL = 'http://localhost:8181' | |
APIKEY = 'xxxxxxxxxx' | |
MESSAGE = 'Your stream was terminated for "reasons"' | |
session_id = sys.argv[1] | |
payload = {'apikey': APIKEY, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Send a random Chuck Norris joke when a movie | |
# starring Chuck Norris is played. | |
# Author: /u/SwiftPanda16 | |
# Requires: requests, lxml | |
# PlexPy script trigger: Playback start | |
# PlexPy script arguments: "{actors}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Updates history grouping in the Tautulli database with the new logic on v2.1.12. | |
# Author: /u/SwiftPanda16 | |
# Requires: requests | |
import requests | |
### EDIT SETTINGS ### |
OlderNewer