Added in support for multiple movie filter values seperated by a comma, i,e, contentRating:G,PG,PG-13

This commit is contained in:
Justin Emter
2017-08-17 14:52:17 -07:00
parent 69e92ef68e
commit 2205cf723b

View File

@@ -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)