From 6d38c772d59af610e0ba79fc2ae2839e9f217806 Mon Sep 17 00:00:00 2001
From: labrys <labrys@useres.noreply.github.com>
Date: Fri, 27 Nov 2015 10:51:05 -0500
Subject: [PATCH] Fix api only returns results when paused = 1

---
 sickbeard/webapi.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py
index a7818889e..b030adb42 100644
--- a/sickbeard/webapi.py
+++ b/sickbeard/webapi.py
@@ -2798,8 +2798,8 @@ class CMD_Shows(ApiCall):
         shows = {}
         for curShow in sickbeard.showList:
 
-            if not self.paused and not curShow.paused:
-                continue
+            if not self.paused and curShow.paused:  # If we're not including paused shows, and the current show is paused
+                continue  # continue with the next show
 
             indexer_show = helpers.mapIndexersToShow(curShow)
 
-- 
GitLab