feat: Populate LocalFile with real info

This commit is contained in:
ronaldheft committed 2022-07-30 16:22:41 -04:00
1 parent db7a8cef77
commit fec1ec554b
4 files changed
+38 -13

No files matched your search

+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 {