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
''' | |
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 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 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 poster images from Imgur and places them inside Shows root folder. | |
/path/to/show/Show.jpg | |
Skips download if showname.jpg exists or if show does not exist. | |
''' | |
import requests | |
import urllib |
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
""" | |
Kill Plex paused video transcoding streams. | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on playback pause | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Pause: new_kill_trans_pause.py | |
""" |
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
''' | |
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 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 server admin stream is experiencing buffering and there are concurrent transcode streams from | |
another user, kill concurrent transcode stream that has the lowest percent complete. Message in | |
kill stream will list why it was killed ('Server Admin's stream take priority and this user has X | |
concurrent streams'). Message will also include an approximation of when the other concurrent stream | |
will finish, stream that is closest to finish will be used. | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on buffer warning |
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
""" | |
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 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 | |
pip install twitter | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on Recently Added | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Recently Added: twitter_notify.py | |
PlexPy > Settings > Notifications > Script > 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
from plexapi.server import PlexServer | |
import random | |
import re | |
baseurl = 'http://localhost:32400' | |
token = 'XXXXXXXXXX' | |
plex = PlexServer(baseurl, token) | |
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
# -*- encoding: UTF-8 -*- | |
import os | |
import httplib2 | |
# pip install --upgrade google-api-python-client | |
from oauth2client.file import Storage | |
from googleapiclient.discovery import build | |
from oauth2client.client import OAuth2WebServerFlow |