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
| """ | |
| Create a Plex Playlist with what was aired on this today's month-day, sort by oldest first. | |
| If Playlist from yesterday exists delete and create today's. | |
| If today's Playlist exists exit. | |
| """ | |
| import operator, time | |
| from plexapi.server import PlexServer | |
| import requests |
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. | |
| Uses: | |
| notify_added_lastweek.py -t poster -d 1 -u all -i user1 user2 -s 250 100 | |
| # email all users expect user1 & user2 what was added in the last day using posters that are 250x100 | |
| notify_added_lastweek.py -t poster -d 7 -u all | |
| # email all users what was added in the last 7 days(week) using posters that are default sized |
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
| ''' | |
| Download theme songs from Plex TV Shows. Theme songs are mp3 and named by shows as displayed by Plex. | |
| Songs are saved in a 'Theme Songs' directory located in script's path. | |
| ''' | |
| from plexapi.server import PlexServer | |
| # pip install plexapi | |
| import os |
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
| ''' | |
| Pull Movie and TV Show poster images from Plex. | |
| Save to Movie and TV Show directories in scripts working directory. | |
| ''' | |
| from plexapi.server import PlexServer | |
| # pip install plexapi | |
| import re |
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 Plex video transcoding streams only. All audio streams are left alone. | |
| PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
| [X] Notify on playback start | |
| PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
| Playback Start: kill_trans_exp_audio.py | |
| """ |
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 location of Plex metadata. | |
| find_plex_meta.py -s adventure | |
| pulls all titles with adventure in the title | |
| or | |
| find_plex_meta.py -s adventure -m movie | |
| pulls all movie titles with adventure in the title | |
| ''' |
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
| """ | |
| If user has 2* or more concurrent streams and the IP of the 2nd stream differs from 1st kill 2nd. | |
| If 2nd stream IP is the same as 1st stream don't kill. | |
| *PlexPy > Settings > Notification> User Concurrent Stream Threshold | |
| The number of concurrent streams by a single user for PlexPy to trigger a notification. Minimum 2. | |
| PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
| [X] Notify on user concurrent streams |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Description: Sync Plex playlists to shared users. | |
| # Author: /u/SwiftPanda16 | |
| # Requires: plexapi, requests, xmltodict | |
| import requests | |
| import xmltodict |
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
| """ | |
| Share functions from https://gist.github.com/JonnyWong16/f8139216e2748cb367558070c1448636 | |
| Once user stream count hits LIMIT they are unshared from libraries expect for banned library. | |
| Once user stream count is below LIMIT and banned library video is watched their shares are restored. | |
| Once violation count have been reached ban permanently. | |
| Caveats: | |
| Unsharing doesn't pause the stream. | |
| After unsharing user can pause but not skip ahead or skip back. |
NewerOlder