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 what was added TFRAME ago and not watched and notify admin using PlexPy. | |
""" | |
import requests | |
import sys | |
import time |
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 what was added TFRAME ago and not watched using PlexPy. | |
""" | |
import requests | |
import sys | |
import time |
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. |
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
""" | |
Use with stream_limiter_ban_email.py to clear watch history of banned users. | |
api_sql must be manually enabled in the config file. | |
""" | |
import requests | |
import sys |
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
import matplotlib | |
matplotlib.use("Agg") | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as ani | |
import numpy as np | |
fig = plt.figure(figsize=(12, 7)) |
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
I am happy to join with you today in what will go down in history as the greatest demonstration for freedom in the history of our nation. | |
Five score years ago, a great American, in whose symbolic shadow we stand today, signed the Emancipation Proclamation. | |
This momentous decree came as a great beacon light of hope to millions of Negro slaves who had been seared in the flames of withering injustice. | |
It came as a joyous daybreak to end the long night of their captivity. | |
But one hundred years later, the Negro still is not free. | |
One hundred years later, the life of the Negro is still sadly crippled by the manacles of segregation and the chains of discrimination. | |
One hundred years later, the Negro lives on a lonely island of poverty in the midst of a vast ocean of material prosperity. | |
One hundred years later, the Negro is still languishing in the corners of American society and finds himself an exile in his own land. | |
So we have come here today to dramatize a shameful condition. | |
In a sense we have come to our natio |
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
""" | |
Notify users of recently added episode to show that they have watched at least LIMIT times via email. | |
Block users with IGNORE_LST. | |
Arguments passed from PlexPy | |
-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} -grk {grandparent_rating_key} | |
You can add more arguments if you want more details in the email body | |
Adding to PlexPy |
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. | |
Once user stream count is below LIMIT their shares are restored. | |
Unsharing does not pause or stop the user's stream. | |
After unsharing user can pause but not skip ahead or skip back. | |
Restrictions remain if unshared to shared while playing. | |
Effected user will need to refresh browser/app or restart app to reconnect. | |
User watch record stop when unshare is executed. |
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_transcode function from https://gist.github.com/Hellowlol/ee47b6534410b1880e19 | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on pause | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Pause: kill_trans_pause.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
''' | |
Kill kill_transcode function from https://gist.github.com/Hellowlol/ee47b6534410b1880e19 | |
''' | |
import requests | |
import sys | |
import json | |
import platform |