[Legacy XML Playlist] Fix import if queue missing

If there is somehow a legacy XML playlist, and there is no queue entry
in the plist, then it should not throw an exception from trying to add
a nil object to the return dictionary.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-13 01:46:44 -07:00
parent 6825d15f68
commit 55c623c9a0
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@
items = dict[@"items"];
albumArt = dict[@"albumArt"];
queueList = dict[@"queue"];
if(!queueList) queueList = @[];
}
NSMutableArray *entries = [NSMutableArray array];