瀏覽代碼

VLCMediaLibraryManager: Fix audio getter

Soomin Lee 7 年之前
父節點
當前提交
994c7125dc
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      SharedSources/VLCMediaLibraryManager.swift

+ 4 - 4
SharedSources/VLCMediaLibraryManager.swift

@@ -159,12 +159,12 @@ extension VLCMediaLibraryManager {
 // MARK: MediaLibrary - Audio methods
 
 extension VLCMediaLibraryManager {
-    func getArtists() -> [VLCMLArtist] {
-        return medialib.artists(with: .artist, desc: false, all: true)
+    func getArtists(sortingCriteria sort: VLCMLSortingCriteria = .artist, desc: Bool = false) -> [VLCMLArtist] {
+        return medialib.artists(with: sort, desc: desc, all: true)
     }
 
-    func getAlbums() -> [VLCMLAlbum] {
-        return medialib.albums(with: .album, desc: false)
+    func getAlbums(sortingCriteria sort: VLCMLSortingCriteria = .album, desc: Bool = false) -> [VLCMLAlbum] {
+        return medialib.albums(with: sort, desc: desc)
     }
 }