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

// THE SOFTWARE.

import AVFoundation

public class AudioFile
{

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