@@ -104,7 +104,7 @@ extension VLCMLAlbum: MediaCollectionModel {
return tracks
}
- func title() -> String? {
+ func title() -> String {
return title
@@ -90,7 +90,7 @@ extension VLCMLArtist: MediaCollectionModel {
return tracks()
return name
@@ -121,7 +121,7 @@ extension VLCMLGenre: MediaCollectionModel {
@@ -75,7 +75,7 @@ protocol SearchableMLModel {
protocol MediaCollectionModel {
func files() -> [VLCMLMedia]?
func sortModel() -> SortModel?
- func title() -> String?
+ func title() -> String
// MARK: - Helper methods
@@ -143,7 +143,7 @@ extension VLCMLPlaylist: MediaCollectionModel {
return media