소스 검색

CollectionModels: Use tracks function to return items for collection

Carola Nitz 6 년 전
부모
커밋
375a7c4b67
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      SharedSources/MediaLibraryModel/ArtistModel.swift
  2. 1 1
      SharedSources/MediaLibraryModel/GenreModel.swift

+ 1 - 1
SharedSources/MediaLibraryModel/ArtistModel.swift

@@ -92,6 +92,6 @@ extension VLCMLArtist: MediaCollectionModel {
     }
 
     func files() -> [VLCMLMedia] {
-        return []
+        return tracks()
     }
 }

+ 1 - 1
SharedSources/MediaLibraryModel/GenreModel.swift

@@ -104,6 +104,6 @@ extension VLCMLGenre: MediaCollectionModel {
     }
 
     func files() -> [VLCMLMedia] {
-        return []
+        return tracks()
     }
 }