Skip to content

Instantly share code, notes, and snippets.

@cargo12
cargo12 / default
Created June 14, 2020 16:43 — forked from RyanWor/default
server {
listen 80 default_server;
root /config/www/Dashboard;
index index.html index.htm index.php;
server_name _;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.html /index.php?$args =404;
@cargo12
cargo12 / telegrambot.php
Created June 14, 2020 12:18 — forked from webbson/telegrambot.php
Telegram bot for Sonarr/Radarr
<?php
function processMessage($message) {
$groupchat = '-XXXX'; // Group chat id
// process incoming message
$message_id = $message["message_id"];
$chat_id = $message["chat"]["id"];
$response = array("chat_id" => $chat_id);
$plextoken = "YYYY"; // Plex token
$plexbaseurl = "https://ASFASFASF.plex.direct:32400"; // PLEX DIRECT URL
@cargo12
cargo12 / radarr.subdomain.conf
Created June 14, 2020 11:52 — forked from drizuid/radarr.subdomain.conf
allow and deny statements
# make sure that your dns has a cname set for radarr and that your radarr container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name radarr.*;
include /config/nginx/ssl.conf;
@cargo12
cargo12 / .env
Created June 14, 2020 11:52 — forked from khongi/.env
Sonarr + Radarr + Jackett + qBittorrent + ddclient cloudflare DNS update + Traefik reverse proxy with LetsEncrypt on Docker
QBITTORRENT_PATH=<PATH>
QBITTORRENT_WEBUI_PORT=<PORT>
DOWNLOAD_PATH=<PATH>
MEDIA_PATH=<PATH>
JACKETT_PATH=<PATH>
SONARR_PATH=<PATH>
RADARR_PATH=<PATH>
DOMAIN=<YOUR DOMAIN>
TZ=<Timezone e.g. Europe/Budapest>
USERDIR=<HOME DIR PATH>
@cargo12
cargo12 / appbox_installer.sh
Created June 14, 2020 10:14 — forked from coder8338/appbox_installer.sh
Appbox installer for radarr, sonarr, flexget, filebot, couchpotato, sickrage, nzbget, nzbget, ombi, jackett & synclounge. See the first comment for instructions how to run!
#!/usr/bin/env bash
# Appbox installer for radarr, sonarr, flexget, filebot, couchpotato, sickrage, nzbget, nzbget, ombi, jackett & synclounge.
#
# Just run this on your Ubuntu VNC app via SSH or in the terminal (Applications > Terminal Emulator) using:
# sudo bash -c "bash <(curl -Ls https://gist.github.com/coder8338/a614f156c916b35becf11c53352b499a/raw)"
#
# I do not work for appbox, just a friendly user helping others out, I will try to keep this as update to date as possible!
set -e
set -u
@cargo12
cargo12 / deluge_extractor.py
Created June 14, 2020 10:11 — forked from Chris-V/deluge_extractor.py
Extract archives from a Deluge download and then call Rad/Sonarr to import the files.
#!/usr/bin/env python3
"""
Extract archives from a Deluge download and then call Rad/Sonarr to import the files.
Extra files (as configured in radarr or sonarr) are also copied to the
extraction directory.
This script has been tested with:
- Linux (tested with Arch)
#!/usr/bin/python
#--------------------------------------------------------------------------------------------------
#-- Movie Tag Updater for Radarr
#--------------------------------------------------------------------------------------------------
# Program : RadarrTagarr
# To Complie : n/a
#
# Purpose : Add tags and profiles to radarr movies. Tags are retreived from Radarr.
# Say Y to add a tag. N to skip a tag. N for all tags will remove all tags.
#
import requests
from pushover import Client
# Settings
# URL example: "https://sonarr.domain.com" or "192.168.1.1:8989"
sonarr_url = ""
sonarr_api = ""
radarr_url = ""
radarr_api = ""
@cargo12
cargo12 / plex_sd_radarry.py
Created June 14, 2020 09:53 — forked from nitrag/plex_sd_radarry.py
Plex SD to Radarr for Quality Upgrade
# Scans your plex movies, if a movie has only SD quality, it will send it to Radarr
# pip install plexapi
# python 3.6+
#
from plexapi.server import PlexServer
import re
import requests
plex_url = 'http://192.168.1.100:32400'
plex_token = 'abc123'
@cargo12
cargo12 / searchAllWantedMovies.sh
Created June 14, 2020 09:51 — forked from elneruda/searchAllWantedMovies.sh
search wanted on radarr / sonarr
#!/bin/sh
RADARR_API_URL="http://radarr.com/api"
RADARR_API_KEY="PUT_YOUR_API_KEY_HERE"
history=$(curl -s ${RADARR_API_URL}/history?page=1\&pageSize=20\&sortKey=date\&sortDir=desc -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" -X GET -H 'X-Api-Key: '$RADARR_API_KEY'' -k)
history=$(echo $history | tr -d '\n' | tr -d '\r' | tr -d '\b')
grabbed=$(echo $history | jq '.records | .[] | select(.movie.monitored) | select(.movie.downloaded | not) | select(.eventType=="grabbed") | .movieId')
grabbed=$(echo $grabbed | sed 's/ /, /g')
grabbed="[${grabbed}]"