                 }
                 let commonKey = metadataItem.commonKey!
                 
-                //                if commonKey == nil {
-                //                    continue
-                //                }
+//                if commonKey == nil {
+//                    continue
+//                }
                 
                 switch commonKey {
                 case "artwork":
-                    NSLog("Artwork")
+                    if let audioImage = UIImage(data: metadataItem.value! as! NSData) {
+                        audioArtwork = MPMediaItemArtwork(image: audioImage)
+                        print(audioImage.description)
+                    }
                 case "title":
                     // It's working
                     title = metadataItem.value! as! String

    {
        let fileAsset = AVURLAsset(URL: url, options: nil)
        var title: String = "Song"
        
        for metadataFormat in fileAsset.availableMetadataFormats {
            let metadataList = fileAsset.metadataForFormat(metadataFormat)

            self.init(title, "")
        }
        
        self.path = url
        if let artwork = audioArtwork {
            self.artwork = artwork
        }
    }
}
