mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 22:59:35 +02:00
Use book/podcast helper
This commit is contained in:
parent
5f4ff38035
commit
2b07c81e54
2 changed files with 3 additions and 2 deletions
|
@ -39,6 +39,7 @@ struct LocalLibraryItem: Realmable, Codable {
|
|||
}
|
||||
}
|
||||
|
||||
var isBook: Bool { self.mediaType == "book" }
|
||||
var isPodcast: Bool { self.mediaType == "podcast" }
|
||||
|
||||
static func primaryKey() -> String? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue