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
""" | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on Recently Added | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Recently Added: notify_on_added.py | |
PlexPy > Settings > Notifications > Script > Script Arguments: | |
-sn {show_name} -ena {episode_name} -ssn {season_num00} -enu {episode_num00} -srv {server_name} -med {media_type} -pos {poster_url} -tt {title} -sum {summary} -lbn {library_name} | |
You can add more arguments if you want more details in the email body |
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
""" | |
Pulling together User IP information and Email. | |
""" | |
import argparse | |
import requests | |
import sys | |
## -sn {show_name} -ena {episode_name} -ssn {season_num00} -enu {episode_num00} -srv {server_name} -med {media_type} -pos {poster_url} -tt {title} -sum {summary} -lbn {library_name} -ip {ip_address} -us {user} -uid {user_id} -pf {platform} -pl {player} -da {datestamp} -ti {timestamp} |
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. | |
# {user} {user_id} {ip_address} | |
import requests | |
import sys | |
user = sys.argv[1] | |
user_id = 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
import requests | |
import sys | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
from geopy.geocoders import Nominatim | |
import math | |
## EDIT THESE SETTINGS ## | |
PLEXPY_APIKEY = 'XXXXXXXXX' # Your PlexPy API key | |
PLEXPY_URL = 'http://localhost:8181/' # Your PlexPy URL |
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 | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib as mpl | |
from collections import OrderedDict | |
import math | |
import numpy as np | |
## EDIT THESE SETTINGS ## |
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 | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib as mpl | |
from collections import OrderedDict | |
import math | |
# Example: http://i.imgur.com/IXd0IVM.png |
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 pygeoip | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
import random | |
import numpy as np | |
from mpl_toolkits.basemap import Basemap | |
from collections import OrderedDict | |
from geopy.geocoders import Nominatim | |
geolocator = Nominatim() |
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. | |
# {user} {title} | |
# Add to Playback Resume | |
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
''' | |
Run script by itself. Will look for WARN code followed by /library/metadata/ str in Plex logs. | |
This is find files that are corrupt or having playback issues. | |
I corrupted a file to test. | |
''' | |
import requests | |
import sys | |
## EDIT THESE SETTINGS ## |
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 psutil | |
import requests | |
import urllib | |
# Drive letter to check if exists. | |
drive = 'D:' | |
disk = psutil.disk_partitions() | |
PLEXPY_URL = 'http://localhost:8181/' # Your PlexPy URL |
OlderNewer