소스 검색

VLCMediaLibraryManager: Rename genres getter

Soomin Lee 6 년 전
부모
커밋
8dd3366800
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      SharedSources/MediaLibraryModel/GenreModel.swift
  2. 1 1
      SharedSources/VLCMediaLibraryManager.swift

+ 1 - 1
SharedSources/MediaLibraryModel/GenreModel.swift

@@ -25,7 +25,7 @@ class GenreModel: MLBaseModel {
     required init(medialibrary: VLCMediaLibraryManager) {
         self.medialibrary = medialibrary
         medialibrary.addObserver(self)
-        files = medialibrary.genre()
+        files = medialibrary.genres()
     }
 
     func append(_ item: VLCMLGenre) {

+ 1 - 1
SharedSources/VLCMediaLibraryManager.swift

@@ -169,7 +169,7 @@ class VLCMediaLibraryManager: NSObject {
         return type == .video ? medialib.videoFiles(with: sort, desc: desc) : medialib.audioFiles(with: sort, desc: desc)
     }
 
-    func genre(sortingCriteria sort: VLCMLSortingCriteria = .default, desc: Bool = false) -> [VLCMLGenre] {
+    func genres(sortingCriteria sort: VLCMLSortingCriteria = .default, desc: Bool = false) -> [VLCMLGenre] {
         return medialib.genres(with: sort, desc: desc)
     }