Commit 994c7125 authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Fix audio getter

parent 60aaf6b4
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment