mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-04 17:23:15 +00:00
Added in support for multiple movie filter values seperated by a comma, i,e, contentRating:G,PG,PG-13
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user