| #!/bin/bash | |
| # Radarr On Grab - Auto Movie Search with Job Locking | |
| # Pauses any immediately obsoleted torrents | |
| # Prevents recursive triggers and handles async search completion | |
| # Configuration | |
| RADARR_URL="http://localhost:7878" | |
| RADARR_API_KEY="apikey" | |
| QBITTORRENT_URL="http://172.17.0.1:8080" |
| # Script to trigger the RefreshMonitoredDownloads task in Sonarr and Radarr | |
| # Sonarr/Radarr only checks the monitored downloads every 60 seconds which | |
| # means that your download could be done in 20 seconds but it'll sit there | |
| # for an additional 40 seconds before Sonarr/Radarr check again. This script | |
| # will run when a download finishes and trigger the RefreshMonitoredDownloads | |
| # task. | |
| import os | |
| import requests |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| 65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
| SFZHH-2Y246-Z483L-EU92B-LNYUA | |
| GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
| FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
| Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
| DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
| KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
| ####################################### | |
| # This python script should be run | |
| # as a cron job every 15 minutes to | |
| # cache the next episode of a currently | |
| # playing TV show. | |
| ######################################## | |
| import requests | |
| import os | |
| import psutil |
Normally, when you're watching a TV-Show — you don't need all its episodes right away; you just need a few for the next hour or so. The following scripts help you with exactly this! plex-autotag.py marks the new shows you add with tag keep1; plex-autodelete.py removes watched episodes from your drive; sonarr-refresher.py triggers sonarr to download few new episodes, to keep you always having your next fix. All in all — sonarr will download you a new episode after you've watched one.
All this magic works only for "main" user.
The autodelete script was originally taken from plex-api and then it was modified to remove only watched episodes, plus I've added a couple of tags.
It would've been better to make the sonarr script to work directly with Plex API instead of relying on the deleted files, but I'm not there yet.
I no longer use Apache as a reverse proxy and moved to NGINX. No further updates will be made to this configuration. It may or may not work in the future, no warranty or support will be provided.
This VirtualHost configuration has been tested with the minimum requirements of Plex Media Server Version 1.16.5.1488 and Web Version: 3.108.2.
The TLS configuration only allows clients that support TLS 1.2+, this may cause issues for legacy clients. You may need to adjust this if specific clients have issues connecting. If however you are OK with having just TLS 1.2+ support, you can also enable the "Disable weak TLS versions" setting on your Plex server, given the reverse proxy will prevent a successful TLS negotiation for such clients anyway.
| #include <cstdlib> | |
| #include <cstdio> | |
| #include <cstring> | |
| #ifdef HAVE_AV_CONFIG_H | |
| #undef HAVE_AV_CONFIG_H | |
| #endif | |
| extern "C" { | |
| #include "libavcodec/avcodec.h" |
| addEventListener('fetch', event => { | |
| event.respondWith(ignoreQueryString(event.request)) | |
| }) | |
| async function ignoreQueryString(request) { | |
| let url = new URL(request.url) | |
| url.search = '' | |
| let modifiedRequest = new Request(url, request) |
| ## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days. | |
| ## Developed by Prakash Kumar (prakash82x@gmail.com) May 28th 2016 | |
| ## www.adminthing.blogspot.com | |
| ## Disclaimer: Please test this script in your test environment before executing on any production server. | |
| ## Author will not be responsible for any misuse/damage caused by using it. | |
| Clear-Host | |
| $ErrorActionPreference = "SilentlyContinue" | |
| ## Display current Status of remaining days from Grace period. |
