From c49ea3acb0e69334047b18c46c17700a42ab0fbf Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Wed, 20 Dec 2023 12:09:03 +0000 Subject: [PATCH] Update translator.py --- mopidy_spotify/translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy_spotify/translator.py b/mopidy_spotify/translator.py index 2b90cc3f..229730ae 100644 --- a/mopidy_spotify/translator.py +++ b/mopidy_spotify/translator.py @@ -110,7 +110,7 @@ def to_playlist( if ref is None or as_ref: return ref - web_tracks = web_playlist.get("tracks", {}).get("items", []) + web_tracks = web_playlist.get("tracks", {}).get("items") or [] if as_items and not isinstance(web_tracks, list): return