This file contains hidden or 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
''' | |
kill_transcode function from https://gist.github.com/Hellowlol/ee47b6534410b1880e19 | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on pause | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Pause: create_wait_kill.py | |
PlexPy > Settings > Notifications > Script > Script Arguments: | |
{transcode_key} |
This file contains hidden or 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
''' | |
kill_transcode function from https://gist.github.com/Hellowlol/ee47b6534410b1880e19 | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on pause | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Pause: kill_trans_pause_wait.py | |
PlexPy > Settings > Notifications > Script > Script Arguments: | |
{transode_key} |
This file contains hidden or 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
''' | |
Refresh the next episode of show once current episode is watched. | |
Check PlexPy's Watched Percent in PlexPy > Settings > General | |
1. PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on watched | |
2. PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Enter the "Script folder" where you save the script. | |
Watched: refresh_next_episode.py | |
Save |
This file contains hidden or 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
# 1. Install the requests module for python. | |
# pip install requests | |
# 2. Add script arguments in PlexPy. | |
# {server_name} {user} {title} {player} {platform} | |
import requests | |
import sys | |
server_name = sys.argv[1] | |
user = sys.argv[2] |
This file contains hidden or 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 | |
import time | |
TODAY = int(time.time()) | |
LASTWEEK = int(TODAY - 7 * 24 * 60 * 60) | |
## EDIT THESE SETTINGS ## | |
PLEXPY_APIKEY = 'XXXXXX' # Your PlexPy API key |
This file contains hidden or 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
""" | |
Use PlexPy to count how many plays per user occurred this week. | |
Notify via PlexPy Notification | |
""" | |
import requests | |
import sys | |
import time | |
TODAY = int(time.time()) |
This file contains hidden or 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
""" | |
Send an email with what was added to Plex in the past week using PlexPy. | |
Email includes title (TV: Show Name: Episode Name; Movie: Movie Title), time added, image, and summary. | |
""" | |
import requests | |
import sys | |
import time | |
import os | |
from email.mime.text import MIMEText |
This file contains hidden or 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
""" | |
Delete all playlists from Plex using PlexAPI | |
https://github.com/mjs7231/python-plexapi | |
""" | |
from plexapi.server import PlexServer | |
import requests | |
baseurl = 'http://localhost:32400' |
This file contains hidden or 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
""" | |
Find when media was added between STARTFRAME and ENDFRAME to Plex through PlexPy. | |
Some Exceptions have been commented out to supress what is printed. | |
Uncomment Exceptions if you run into problem and need to investigate. | |
""" | |
import requests | |
import sys | |
import time |
This file contains hidden or 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
""" | |
Find when media was added between STARTFRAME and ENDFRAME to Plex through PlexPy. | |
This will only show for what has been wached. | |
api_sql must be manually enabled in the config file. | |
""" | |
import requests |