Skip to content

Auto Upload for Sonarr and Lidarr

Robert Baker edited this page Mar 2, 2019 · 4 revisions

📂 Click Here - Sign up for Google's Suite for Business - Unlimited Space

📂 Click Here - NZB's with from NewsHost - PG Members Receive a 58% Discount




Table of Contents

  1. Intro to Automation, welcome to 2019 bois
  2. The Script
  3. Connect to Sonarr

THIS IS NOT NEEDED or USED BY PGBLITZ!

Use at your own risk, it's possible you can do things that will conflict and cause problems with PGBLITZ operations and operating behaviors.

1. Intro to Automation, welcome to 2019 bois

The script is pretty simple to use. Just edit the "NAMEOFSCRIPTHERE.sh" with whatever you want to name the script and "RCLONE COMMAND HERE" with the command you want to use for rclone.

Features of this simple 5 line script

  • Checks if it's already running so it doesn't run over itself.
  • Basically any rclone command can be put into here.
  • Can be added to Sonarr/Lidarr to have it run after it imports an item. (Auto upload after completion)

Some things to note

  • Your rclone needs to be callable normally. IE, You type rclone copy... if you get an error do which rclone and add that with your command instead of only rclone so you end up with /usr/bin/rclone copy....
  • Name of script needs to match the name you give in the script as that looks for itself in the processes to check if theres a job already running.
  • Script needs to be chmod +x so Sonarr/Lidarr can run it. AFAIK anything that can run a script will be able to run this script. Only tested with Sonarr/Lidarr.

2. The Script

#!/bin/bash
if pidof -o %PPID -x "NAMEOFSCRIPTHERE.sh"; then
exit 1
fi
RCLONE COMMAND HERE
exit

3. Connect to Sonarr

  1. Visit Sonarr page
  2. Go to Settings>Connect>Custom Script.
  3. Configure it similar to the screenshot below.

If you have rename, toggle "On Rename". Same applies if you have upgrades for files.

http://PGBlitz.wiki

Useful Starter Links

  1. Introduction
  2. Blitz YouTube Channel
  3. G-Suite Signup
  4. Recommended NewsHosts

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PG Editions
  5. PGBlitz Repos
  6. Common Issues

Deploy & Config

PGBlitz
  1. SSH Server Access
  2. Create a SUDO User
  3. Install PGBlitz
  4. WatchTower
  5. Remote Path Mappings

Data Transport
  1. PG Clone
    1. Google OAuth Keys
    2. PG Move
    3. PG Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PG Shield
  4. PG Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PG Fork
  8. Extra PG Commands

Blitz App Info

  1. Accessing PG Apps
  2. App Port Scheme
  3. Plex to AutoScan

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. RuTorrent
  14. SABNZBD
  15. Sonarr
  16. Tautulli
Community Apps [Expand]
  1. AirSonic
  2. AllTube
  3. Bazarr
  4. Beets
  5. Bitwarden
  6. BookSonic
  7. cAdvisor
  8. Cloud Commander
  9. DDClient
  10. Deezloaderremix
  11. Deluge
  12. DelugeVPN
  13. Duplicati
  14. EmbyStats
  15. FlexGet
  16. Gazee
  17. Gitea
  18. Handbrake
  19. Headphones
  20. Heimdall
  21. HomeAssistant
  22. HTPCManager
  23. JDownloader2
  24. jd2-openvpn
  25. Kitana
  26. Logarr
  27. MakeMKV
  28. MariaDB
  29. McMyadmin
  30. MEDUSA
  31. Mellow
  32. Monitorr
  33. Muximux
  34. Mylar
  35. NextCloud
  36. NowShowing
  37. NZBHydra2
  38. NZBThrottle
  39. Organizr
  40. pyLoad
  41. Radarr4k
  42. Resilio
  43. rflood-openvpn
  44. rutorrent-openvpn
  45. ShareSite
  46. Shoko Anime Server
  47. SpeedTest
  48. SyncLounge
  49. Syncthing
  50. The Lounge
  51. Transmission
  52. Trakt.or
  53. Ubooquity
  54. x TeVe
  55. Zammad

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
Scripts
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
Clone this wiki locally
You can’t perform that action at this time.