         let downloadUrl = track.output.url
         
         let urlAsset = AVURLAsset(url: downloadUrl)
-    
+        
         guard let task = assetDownloadURLSession.makeAssetDownloadTask(asset: urlAsset,
-                                                                           assetTitle: sambaMedia.title,
-                                                                           assetArtworkData: nil,
-                                                                           options: nil) else { return }
+                                                                       assetTitle: sambaMedia.title,
+                                                                       assetArtworkData: nil,
+                                                                       options: nil) else { return }
         task.taskDescription = sambaMedia.id
         
         



extension Notification.Name {
   
    static let SambaDownloadProgress = Notification.Name(rawValue: "SambaDownloadProgressNotification")
    
    static let SambaDownloadStateChanged = Notification.Name(rawValue: "SambaDownloadStateChangedNotification")

    static let SambaPersistenceManagerDidRestoreState = Notification.Name(rawValue: "SambaPersistenceManagerDidRestoreStateNotification")
}


        var userInfo = [DownloadState.Key: Any]()
        
        userInfo[DownloadState.Key.state] = downloadState
        
        NotificationCenter.default.post(name: .SambaDownloadStateChanged, object: nil, userInfo: userInfo)
        
    }
    
    func isDownloading(_ mediaId: String) -> Bool {
        guard activeDownloadsMap.contains(where: { $1.id == mediaId }),
            sambaMediasDownloading.contains(where: { $0.id == mediaId}) else {
                return false
        }
        
        return true
