Plugin sabnzbd_*: fix compatbility with SABnzbd 3.x
The change is probably compatible with SABnzbd 2.x, as well. Thanks, waywit for the change proposal. Closes: #1082
This commit is contained in:
parent
24f4883777
commit
31f64337b6
|
@ -35,7 +35,7 @@ use LWP::UserAgent;
|
|||
#defines
|
||||
my $HOST = exists $ENV{'host'} ? $ENV{'host'} : "http://localhost:8080/";
|
||||
my $API = exists $ENV{'api'} ? $ENV{'api'} : "";
|
||||
my $URL = $HOST."/sabnzbd/api?mode=qstatus&output=xml&apikey=".$API;
|
||||
my $URL = $HOST."/sabnzbd/api?mode=queue&output=xml&apikey=".$API;
|
||||
my $sURL = sprintf $URL;
|
||||
|
||||
#config output
|
||||
|
|
|
@ -35,7 +35,7 @@ use LWP::UserAgent;
|
|||
#defines
|
||||
my $HOST = exists $ENV{'host'} ? $ENV{'host'} : "http://localhost:8080/";
|
||||
my $API = exists $ENV{'api'} ? $ENV{'api'} : "";
|
||||
my $URL = $HOST."/sabnzbd/api?mode=qstatus&output=xml&apikey=".$API;
|
||||
my $URL = $HOST."/sabnzbd/api?mode=queue&output=xml&apikey=".$API;
|
||||
my $sURL = sprintf $URL;
|
||||
|
||||
#config output
|
||||
|
|
Loading…
Reference in New Issue