feat: Populate LocalFile with real info

This commit is contained in:
ronaldheft
2022-07-30 16:22:41 -04:00
parent db7a8cef77
commit fec1ec554b
4 changed files with 38 additions and 13 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ public class AbsDownloader: CAPPlugin {
let localUrl = itemDirectory.appendingPathComponent("\(filename)")
downloadTrack(serverUrl: serverUrl, localUrl: localUrl)
return LocalFile(filename: filename, localUrl: localUrl)
return LocalFile(filename, track.mimeType, localUrl)
}
private func urlForTrack(item: LibraryItem, track: AudioTrack) -> URL {