Use book/podcast helper

This commit is contained in:
ronaldheft 2022-08-11 12:32:58 -04:00
parent 5f4ff38035
commit 2b07c81e54
2 changed files with 3 additions and 2 deletions

View file

@ -39,6 +39,7 @@ struct LocalLibraryItem: Realmable, Codable {
}
}
var isBook: Bool { self.mediaType == "book" }
var isPodcast: Bool { self.mediaType == "podcast" }
static func primaryKey() -> String? {