From 797fdfe0da440357af5af07e290a08d4b2e28de5 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sun, 23 Aug 2020 13:13:17 +1200 Subject: [PATCH] Pinned fallback returns array vs obj --- mopidy_iris/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mopidy_iris/core.py b/mopidy_iris/core.py index 732a4c6f..739f8d70 100755 --- a/mopidy_iris/core.py +++ b/mopidy_iris/core.py @@ -84,7 +84,10 @@ class IrisCore(pykka.ThreadingActor): f.close() return content except Exception: - return {} + if name == "pinned": + return [] + else: + return {} ## # Save dict object to disk @@ -829,7 +832,7 @@ class IrisCore(pykka.ThreadingActor): ## # Server-side data assets # - # These functions are used internally to store data packets locally for all users to access + # These functions are used internally to store data locally for all users to access ## def get_data(self, name, *args, **kwargs):