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. | |
| # {user} {user_id} {ip_address} | |
| import requests | |
| import sys | |
| user = sys.argv[1] | |
| user_id = 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
| """ | |
| 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 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
| """ | |
| 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 |
NewerOlder