From 2205cf723b6c473aa51da2c9c6dffffe398042fc Mon Sep 17 00:00:00 2001 From: Justin Emter Date: Thu, 17 Aug 2017 14:52:17 -0700 Subject: [PATCH] Added in support for multiple movie filter values seperated by a comma, i,e, contentRating:G,PG,PG-13 --- PseudoChannel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PseudoChannel.py b/PseudoChannel.py index 05757f7..25a35cf 100644 --- a/PseudoChannel.py +++ b/PseudoChannel.py @@ -694,6 +694,9 @@ class PseudoChannel(): thestr = entry[13] regex = re.compile(r"\b(\w+)\s*:\s*([^:]*)(?=\s+\w+\s*:|$)") d = dict(regex.findall(thestr)) + # turn values into list + for key, val in d.iteritems(): + d[key] = val.split(',') for movie in movies.search(None, **d): movies_list.append(movie)