From 210fe7bf9043b90ba53ffb9f042e0b4c65908280 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 20 Jul 2024 12:02:36 +0200 Subject: [PATCH] Fix an unarchiver warning --- Classes/QueueItem.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/QueueItem.swift b/Classes/QueueItem.swift index 9c8da46..3effaf1 100644 --- a/Classes/QueueItem.swift +++ b/Classes/QueueItem.swift @@ -416,7 +416,7 @@ import MP42Foundation statusInternal = QueueItem.Status(rawValue: Int(aDecoder.decodeInt32(forKey: "SBQueueItemStatus"))) ?? .failed mp4File = aDecoder.decodeObject(of: [MP42File.classForCoder()], forKey: "SBQueueItemMp4File") as? MP42File uniqueID = aDecoder.decodeObject(of: [NSString.classForCoder()], forKey: "SBQueueItemID") as! String - attributes = aDecoder.decodeObject(of: [NSDictionary.classForCoder()], forKey: "SBQueueItemAttributes") as! [String : Any] + attributes = aDecoder.decodeObject(of: [NSDictionary.classForCoder(), NSString.classForCoder(), NSNumber.classForCoder()], forKey: "SBQueueItemAttributes") as! [String : Any] #if SB_SANDBOX if var bookmark = aDecoder.decodeObject(of: [NSData.classForCoder()], forKey: "SBQueueItemFileURLBookmark") as? Data {