From 09ef85c73c4ffec21bd700363073d81f5c685cee Mon Sep 17 00:00:00 2001
From: Dustyn Gibson <miigotu@gmail.com>
Date: Fri, 27 Nov 2015 18:26:26 -0800
Subject: [PATCH] Fix unhashable list error in webapi Fixes
 https://github.com/SickRage/sickrage-issues/issues/91

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

diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py
index b030adb42..e3092be6c 100644
--- a/sickbeard/webapi.py
+++ b/sickbeard/webapi.py
@@ -192,8 +192,8 @@ class ApiHandler(RequestHandler):
             for cmd in commands:
                 cur_args, cur_kwargs = self.filter_params(cmd, args, kwargs)
 
-                cmd = cmd.split("_")  # was a index used for this cmd ?
-                cmd, cmd_index = cmd[0], cmd[1:]  # this gives us the clear cmd and the index
+                if len(cmd.split("_")) > 1:
+                    cmd, cmd_index = cmd.split("_")
 
                 logger.log(u"API :: " + cmd + ": cur_kwargs " + str(cur_kwargs), logger.DEBUG)
                 if not (cmd in ('show.getbanner', 'show.getfanart', 'show.getnetworklogo', 'show.getposter') and
-- 
GitLab