Grouping clients; we can't change a client's stream, just a groups so UI reflects this

This commit is contained in:
James Barnsley
2021-10-19 21:39:01 +13:00
parent 5c152efea5
commit c0475ee067
10 changed files with 349 additions and 344 deletions

View File

@ -1199,8 +1199,9 @@ class IrisCore(pykka.ThreadingActor):
}
if track:
# We dump the JSON to convert the Track to JSON, but we need to then loads back to JSON
# for the response.
# Convert the Track to JSON, but to make it a response-ready JSON we need to load it.
# Required because ModelJSONEncoder produces single-quote JSON, and we need standard
# double-quoted json.
track = json.loads(json.dumps(track, cls=ModelJSONEncoder))
images = self.core.library.get_images([track["uri"]]).get()
if images: