Skip to content

Commit

Permalink
Fix user/device filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
DouweM committed Aug 13, 2023
1 parent 04d0b22 commit a922a0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.star
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def client.now_playing(config):
if device_type:
filters.append("./Player/@device='%s'" % device_type)

item = doc.query_node('//MediaContainer/Video[%s]' % " and ".join(filters))
query = '//MediaContainer/Video[(%s)]' % ") and (".join(filters)
item = doc.query_node(query)
if not item:
return None

Expand Down

0 comments on commit a922a0d

Please sign in to comment.