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
747 | |
748 | |
749 | |
750 | |
751 | |
752 | |
753 | |
754 | |
755 | |
756 |
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
### WARNING: This script has not been tested! ### | |
# 1. Install the requests module for python. | |
# pip install requests | |
# 2. Add script arguments in PlexPy. | |
# {user} {action} | |
import requests | |
import sys | |
user = sys.argv[1] |
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: Automatically mark a multi-episode file as watched in Plex. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi | |
# Tautulli script trigger: | |
# * Notify on watched | |
# Tautulli script conditions: | |
# * Condition {1}: |
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: Automatically add a movie to a collection based on release date. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi | |
# Tautulli script trigger: | |
# * Notify on recently added | |
# Tautulli script conditions: | |
# * Filter which media to add to collection. |
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
# 1. Install the requests module for python. | |
# pip install requests | |
# 2. Add script arguments in PlexPy. The following script arguments are available by default. More can be added below. | |
# -ip {ip_address} -u {user} -mt {media_type} -t {title} -pf {platform} -pl {player} -da {datestamp} -ti {timestamp} | |
import argparse | |
import requests | |
import sys | |
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: Check Plex remote access using CanYouSeeMe.org and send a notification | |
# Author: /u/SwiftPanda16 | |
# Tautulli script trigger: | |
# * Plex Remote Access Down | |
# Tautulli script conditions: | |
# * None | |
# Tautulli script arguments: |
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: Create a Plex collection from a text file list of rating keys. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
import requests | |
from plexapi.server import PlexServer |
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: Execute a command when no Plex sessions are active. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi | |
import shlex | |
import subprocess | |
from plexapi.server import PlexServer |
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 random | |
import requests | |
import string | |
import sys | |
import time | |
import uuid | |
try: | |
NUMBER_OF_ACCOUNTS = int(sys.argv[1]) | |
except (IndexError, ValueError): |
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 uuid | |
from plexapi.utils import getMyPlexAccount, createMyPlexDevice | |
account = getMyPlexAccount() | |
product = input("App name: ") | |
headers = { | |
'X-Plex-Platform': '', | |
'X-Plex-Platform-Version': '', | |
'X-Plex-Provides': '', | |
'X-Plex-Version': '', |