-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Clem Morton edited this page Jun 25, 2019
·
8 revisions
Welcome to the Sonarr-MakeLinks wiki!
This module is not available on CPAN Yet. I am working on it.
From the command line as a one liner.
perl -MSonarr::MakeLinks -e "Sonarr::MakeLinks::run_api_call('API_KEY', '127.0.0.1', '8989', '/tv/plex-links' );"
Calling it from a Perl Script, supplying API_KEY IP PORT DIRECTORY
#filename: run.pl
use Sonarr::MakeLinks
print "Running Make Links.\n";
my ($s_apikey, $s_ip, $s_port, $plex_ln_dir) = @ARGV; Sonarr::MakeLinks::run_api_call("$s_apikey", "$s_ip", "$s_port", "$plex_ln_dir");
print "Complete.\n";
perl run.pl API_KEY IP PORT DIRECTORY