Get array arguments as list. fix #1875

This commit is contained in:
Ruud
2013-06-24 00:26:00 +02:00
parent 374f8ba1de
commit 9eea42b121
2 changed files with 56 additions and 0 deletions
+4
View File
@@ -1,3 +1,4 @@
from couchpotato.core.helpers.request import getParams
from tornado.web import RequestHandler, asynchronous
import json
import urllib
@@ -54,6 +55,9 @@ class ApiHandler(RequestHandler):
for x in self.request.arguments:
kwargs[x] = urllib.unquote(self.get_argument(x))
# Split array arguments
kwargs = getParams(kwargs)
# Remove t random string
try: del kwargs['t']
except: pass