From 118457fa444157e46790e7640a9de9e18816f4e2 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 10 Oct 2019 12:17:45 +1100 Subject: [PATCH] [sickbeard_] Show counts as stacked areas Signed-off-by: Olivier Mehani --- plugins/sickbeard/sickbeard_episodes | 9 ++++++--- plugins/sickbeard/sickbeard_shows | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/sickbeard/sickbeard_episodes b/plugins/sickbeard/sickbeard_episodes index e4f38a24..4670d75d 100755 --- a/plugins/sickbeard/sickbeard_episodes +++ b/plugins/sickbeard/sickbeard_episodes @@ -46,9 +46,12 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config') graph_title Episodes graph_vlabel Episodes graph_category tv -down.label Downloaded -snatched.label Snatched total.label Total +total.draw AREA +down.label Downloaded +down.draw AREA +snatched.label Snatched +snatched.draw STACK EOC ; @@ -60,9 +63,9 @@ my $req = $get->get($sURL); my $json = JSON::Any->jsonToObj($req->content()); if ($json->{result} eq 'success') { + print "total.value $json->{data}->{ep_total}\n"; print "down.value $json->{data}->{ep_downloaded}\n"; print "snatched.value $json->{data}->{ep_snatched}\n"; - print "total.value $json->{data}->{ep_total}\n"; exit 0; } else { print "$json->{message}\n"; diff --git a/plugins/sickbeard/sickbeard_shows b/plugins/sickbeard/sickbeard_shows index ed755ac5..4b3db267 100755 --- a/plugins/sickbeard/sickbeard_shows +++ b/plugins/sickbeard/sickbeard_shows @@ -46,8 +46,10 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config') graph_title Shows graph_vlabel Shows graph_category tv -active.label Active total.label Total +total.draw AREA +active.label Active +active.draw AREA EOC ; @@ -59,8 +61,8 @@ my $req = $get->get($sURL); my $json = JSON::Any->jsonToObj($req->content()); if ($json->{result} eq 'success') { - print "active.value $json->{data}->{shows_active}\n"; print "total.value $json->{data}->{shows_total}\n"; + print "active.value $json->{data}->{shows_active}\n"; exit 0; } else { print "$json->{message}\n";